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

Fix regexp_instr on Redshift #102

Merged
merged 1 commit into from
Jul 24, 2021
Merged

Fix regexp_instr on Redshift #102

merged 1 commit into from
Jul 24, 2021

Conversation

mirosval
Copy link
Contributor

with the change to adapter resolution in dbt 0.20, redshift has been
using the postgres version of the macro, which fails because the
function regexp_matches exists on Postgres but not Redshift. While the
regexp_instr does exist on Redshift, so the default was correct all
along.

This commit simply adds an explicit adapter for Redshift that is the
same as the default adapter.

This should fix #97

with the change to adapter resolution in dbt 0.20, redshift has been
using the postgres version of the macro, which fails because the
function `regexp_matches` exists on Postgres but not Redshift. While the
`regexp_instr` does exist on Redshift, so the default was correct all
along.

This commit simply adds an explicit adapter for Redshift that is the
same as the default adapter.
@clausherther
Copy link
Contributor

Very cool, thanks! I'll take a look today and should be able to merge this and #101 this weekend and cut a new release.

@clausherther clausherther self-requested a review July 24, 2021 13:44
Copy link
Contributor

@clausherther clausherther left a comment

Choose a reason for hiding this comment

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

LGTM!

@clausherther clausherther merged commit 1c99c0d into calogica:main Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regex expectations broken on Redshift
2 participants