-
Notifications
You must be signed in to change notification settings - Fork 16
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
Validate that dbt-teradata works with dbt-expectations package #27
Comments
Has this issue been looked at? |
Hi @sambloom92 , we have not investigated it yet. Right now, we prioritize catching up with dbt releases. If you have tried it and have feedback it would be very helpful. |
Ok I have been writing some tests using dbt-teradata and dbt-expectations for a work project, so I will post all the issues I find and the code I've used to fix them. These are the tests I've tried so far (I won't try them all as there are lots, but these are the ones I've needed so far):
The main fix that I needed to implement to make most of these work was to create a
This then requires that each test that calls
Unfortunately there are a lot of tests which use Ideally all of the tests in dbt_expectations would be implemented such that the test calls a macro of the same name, and this macro then uses I may suggest this as an enhancement to the dbt-expectations package, as it won't change anything functionally, but should make it easier for other dbt adapaters to maintain compatibility. Here is an example of what I mean:
would ideally be refactored to:
So then all you'd need to do to make it teradata compatible is provide this macro in the dbt-teradata adapater:
@adamtwo do you think this change would be a reasonable request for the dbt-expectations maintainers? Or is there an easier way that I'm missing which would not require them to change anything on their side? Finally,
And the teradata implementation:
TLDR;The main issues i've discovered are:
|
Describe the feature
dbt users frequently rely on https://github.com/calogica/dbt-expectations. We need to ensure that
dbt-teradata
works well with this dbt package.Describe alternatives you've considered
Don't depend on existing dbt libraries and always create your own.
Additional context
This came up in a discussion with a large Telco customer who is using dbt with Teradata.
Who will this benefit?
Users who want to leverage https://github.com/calogica/dbt-expectations in their dbt projects.
Are you interested in contributing this feature?
Yes.
The text was updated successfully, but these errors were encountered: