Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Enable dict format for ephemeral model unit tests #11263

Open
3 tasks done
fbertsch opened this issue Jan 31, 2025 · 0 comments
Open
3 tasks done

[Feature] Enable dict format for ephemeral model unit tests #11263

fbertsch opened this issue Jan 31, 2025 · 0 comments
Labels
enhancement New feature or request triage

Comments

@fbertsch
Copy link

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

Allow ephemeral models to define unit tests using dict format. The rows for the unit tests could be written as YAML, easing both writability and readability.

Describe alternatives you've considered

Follow-up from #9686.

The sql format for unit tests allow us to define unit tests for ephemeral models, but are far less convenient than dict format:

  • Unable to use anchors and references, which are especially useful for fields repeated in many/all unit tests
  • Must supply data for all rows
  • Linting/formatting is difficult

Who will this benefit?

Everyone who unit tests ephemeral models. This might make ephemeral models more useful.

Are you interested in contributing this feature?

If someone gives a rough pointer of where to contribute, I can do it

Anything else?

No response

@fbertsch fbertsch added enhancement New feature or request triage labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

1 participant