-
Notifications
You must be signed in to change notification settings - Fork 121
Raize error if columns can't be detected #881
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
Conversation
WalkthroughAdded error handling to detect empty columns in a data monitoring macro. When no columns are found for a model_relation, the macro now raises a compiler error with an informative message. Query construction logic remains unchanged. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
👋 @kokorin |
|
Thanks @kokorin , this looks great! |
|
approved, pending test |
When dbt user has no permissions for a table, Elementary
schema_changes_from_baselinetest fails with unclear message (at least in Snowflake):It happens because dbt swallows DB error in
adapter.get_columns_in_relation()when a user has not enough permissions.It our case it was hard to detect because of Snowflake Secondary roles, which allowed human users to read from source DB, but not for CI users.
Summary by CodeRabbit