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

(#1665) Fix for casting error on old versions of postgres in snapshots #1666

Merged
merged 1 commit into from
Aug 6, 2019

Conversation

drewbanin
Copy link
Contributor

closes #1665

The specific change required to fix these queries on pg 9.6 is involves explicitly casting the dbt_change_type column when comparing its value in both the update and insert statements. This PR casts all text columns explicitly to text type in these queries just to be extra careful.

@drewbanin drewbanin requested review from cmcarthur and beckjake and removed request for cmcarthur August 6, 2019 02:45
Copy link
Contributor

@beckjake beckjake left a comment

Choose a reason for hiding this comment

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

This seems totally uncontroversial to me - text should have always been the default type.

@drewbanin drewbanin merged commit 7901413 into dev/0.14.1 Aug 6, 2019
@drewbanin drewbanin deleted the fix/snapshot-support-old-pg-versions branch August 6, 2019 02:50
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.

Incremental snapshot sql fails on postgres 9.6
2 participants