Skip to content

Fix(bigquery): Pass catalog when checking for clustering key changes#3498

Merged
erindru merged 2 commits into
mainfrom
erin/fix-bq-catalog
Dec 10, 2024
Merged

Fix(bigquery): Pass catalog when checking for clustering key changes#3498
erindru merged 2 commits into
mainfrom
erin/fix-bq-catalog

Conversation

@erindru
Copy link
Copy Markdown
Collaborator

@erindru erindru commented Dec 10, 2024

No description provided.

@erindru erindru force-pushed the erin/fix-bq-catalog branch 2 times, most recently from 5c1b6ff to 998b50d Compare December 10, 2024 20:21
@erindru erindru force-pushed the erin/fix-bq-catalog branch from 998b50d to 0d69825 Compare December 10, 2024 20:22
Comment thread .circleci/continue_config.yml Outdated
- main
#- clickhouse-cloud
#- athena
#filters:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

todo: revert

note that Snowflake also inherits ClusteredByMixin so ive enabled Snowflake tests for this PR too

current_table = exp.to_table(current_table_name)
target_table = exp.to_table(target_table_name)

current_table_schema = schema_(current_table.db, catalog=current_table.catalog)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I observed that this was the function that the SnapshotEvaluator uses when it calls get_data_objects() to build a schema-with-catalog Table object.

The Table object cant be passed directly or to_schema() produces a db.table value instead of a catalog.db value

@erindru erindru merged commit a404175 into main Dec 10, 2024
@erindru erindru deleted the erin/fix-bq-catalog branch December 10, 2024 21:18
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