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

Initial code to use dbt.tests.adapter in Redshift #81

Merged
merged 3 commits into from
Mar 29, 2022

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Mar 11, 2022

resolves #78

Description

Use the new testing framework in Redshift.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-redshift next" section.

@cla-bot cla-bot bot added the cla:yes label Mar 11, 2022


class TestSnapshotCheckColsRedshift(BaseSnapshotCheckCols):
# Redshift defines the 'name' column such that it's not big enough
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider updating the base case to accommodate all adapters? but can also leave this as future steps

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't update the base case to make Redshift work, because it requires a specific column datatype which doesn't work for all adapters.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think this is related to some jank around updating these fixture tables mid-sequence, which is worth discussing further, alongside the jank we've already identified: dbt-labs/dbt-core#4778 (comment)

Copy link
Contributor

@ChenyuLInx ChenyuLInx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gshank gshank merged commit 162dc30 into main Mar 29, 2022
@gshank gshank deleted the ct-351-new_test_framework branch March 29, 2022 19:37
abbywh pushed a commit to abbywh/dbt-redshift that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-351] Use the new testing framework in the redshift plugin
3 participants