Skip to content

Fix snapshot_meta_column_names test assertion for dataclass change#254

Merged
sdebruyn merged 1 commit into
mainfrom
fix/snapshot-invalid-column-names-test
May 17, 2026
Merged

Fix snapshot_meta_column_names test assertion for dataclass change#254
sdebruyn merged 1 commit into
mainfrom
fix/snapshot-invalid-column-names-test

Conversation

@sdebruyn
Copy link
Copy Markdown
Owner

Summary

  • dbt-core changed snapshot_meta_column_names from a plain dict to a SnapshotMetaColumnNames dataclass (which includes dbt_is_deleted=None)
  • Updated the test assertion to compare against the dataclass instance instead of a dict literal

Test plan

  • Run TestBaseSnapshotInvalidColumnNames via /test-dw -k TestBaseSnapshotInvalidColumnNames

🤖 Generated with Claude Code

dbt-core changed snapshot_meta_column_names from a plain dict to a
SnapshotMetaColumnNames dataclass. Update the test assertion to compare
against the dataclass instance instead of a dict.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 17, 2026 16:23
@sdebruyn
Copy link
Copy Markdown
Owner Author

/test-dw -k TestBaseSnapshotInvalidColumnNames

@github-actions
Copy link
Copy Markdown

DW integration tests failed

Filter: k TestBaseSnapshotInvalidColumnNames
Run: https://github.com/sdebruyn/dbt-fabric/actions/runs/25996245683

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates a Fabric adapter snapshot configuration test to match dbt-core’s newer SnapshotMetaColumnNames dataclass representation instead of comparing against a plain dictionary.

Changes:

  • Imports SnapshotMetaColumnNames from dbt-core artifacts.
  • Updates the snapshot meta column names assertion to compare against a dataclass instance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sdebruyn
Copy link
Copy Markdown
Owner Author

/test-dw TestBaseSnapshotInvalidColumnNames

@github-actions
Copy link
Copy Markdown

DW integration tests passed

Filter: TestBaseSnapshotInvalidColumnNames
Run: https://github.com/sdebruyn/dbt-fabric/actions/runs/25996269980

@sdebruyn sdebruyn merged commit 473d16e into main May 17, 2026
8 checks passed
@sdebruyn sdebruyn deleted the fix/snapshot-invalid-column-names-test branch May 17, 2026 16:25
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