Skip to content

fix: always set column order scd type 2#2155

Merged
eakmanrq merged 1 commit intomainfrom
eakmanrq/scd_type_2_define_column_order
Feb 20, 2024
Merged

fix: always set column order scd type 2#2155
eakmanrq merged 1 commit intomainfrom
eakmanrq/scd_type_2_define_column_order

Conversation

@eakmanrq
Copy link
Collaborator

Prior to this change we would select * on the final selects to union the different CTEs together. This meant there was a unexpected assumption about column order of selects in the CTEs which was unnecessary since we know the column names within each of the selects and therefore we can not require an order to be maintained.

@eakmanrq eakmanrq requested a review from izeigerman February 20, 2024 22:14
@eakmanrq eakmanrq enabled auto-merge (squash) February 20, 2024 22:17
@eakmanrq eakmanrq merged commit 014b096 into main Feb 20, 2024
@eakmanrq eakmanrq deleted the eakmanrq/scd_type_2_define_column_order branch February 20, 2024 22:22
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.

3 participants