-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(ingest/tableau): handle missing query in tableau views #7186
fix(ingest/tableau): handle missing query in tableau views #7186
Conversation
Darn you beat me to it. I came here to submit the easy PR. You're amazing @hsheth2 ! |
@@ -893,7 +893,7 @@ def emit_custom_sql_datasources(self) -> Iterable[MetadataWorkUnit]: | |||
view_properties = ViewPropertiesClass( | |||
materialized=False, | |||
viewLanguage="SQL", | |||
viewLogic=clean_query(csql.get("query", "")), | |||
viewLogic=clean_query(csql.get("query") or ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Let's just skip adding viewProperties to dataset aspects if custom SQL query is not available.
Hey - can we get this merged 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
One small suggestion but that can be added in a followup PR
Fixes #7182
Checklist