Skip to content

fix!: allow expressions in scd type 2 model unique keys#2164

Merged
eakmanrq merged 1 commit intomainfrom
eakmanrq/scd_type_2_unique_key_expression
Feb 22, 2024
Merged

fix!: allow expressions in scd type 2 model unique keys#2164
eakmanrq merged 1 commit intomainfrom
eakmanrq/scd_type_2_unique_key_expression

Conversation

@eakmanrq
Copy link
Collaborator

This adds support for expressions in the list of columns in unique keys. Adding this in order to support dbt's ability to handle a single expression (SQLMesh now supports a list of them).

Since SQLMesh supports a list of columns, the number of use cases should be lower and therefore this might just be for rare cases in SQLMesh native. As a result not documenting this for now.

@eakmanrq eakmanrq force-pushed the eakmanrq/scd_type_2_unique_key_expression branch from 2ed8415 to 85a03fe Compare February 21, 2024 23:49
@eakmanrq eakmanrq force-pushed the eakmanrq/scd_type_2_unique_key_expression branch from 85a03fe to 239242d Compare February 21, 2024 23:59
@eakmanrq eakmanrq merged commit c3b716b into main Feb 22, 2024
@eakmanrq eakmanrq deleted the eakmanrq/scd_type_2_unique_key_expression branch February 22, 2024 00:08
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.

2 participants