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

alias for schema tests macros #2414

Merged

Conversation

mikaelene
Copy link
Contributor

resolves #2397

Description

Added aliases to columns returned from schema_tests macros. This will make the macros work on adapters required columnnames in their driver such as dbt-sqlserver with it's pyodbc driver

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 next" section.

@cla-bot cla-bot bot added the cla:yes label May 7, 2020
@drewbanin drewbanin self-requested a review May 7, 2020 13:26
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

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

Looks great - thanks @mikaelene! I just kicked off the tests - will happily merge this when they pass :)

One more thing though: can you add an entry to the CHANGELOG.md file and add yourself as a contributor for the 0.17.0 release? Thanks!

@drewbanin
Copy link
Contributor

FYI I also cooked up this issue so that you could override the core schema tests in dbt-sqlserver directly if you needed to in the future #2415

@beckjake beckjake merged commit 0f4a369 into dbt-labs:dev/octavius-catto May 7, 2020
@mikaelene
Copy link
Contributor Author

Thanks!

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.

Aliasing the returned columns of macros to support MS sql server
3 participants