Skip to content
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

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Jan 31, 2023

Fixes #7182

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@khgouldy
Copy link
Contributor

Darn you beat me to it. I came here to submit the easy PR. You're amazing @hsheth2 !

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 31, 2023
@@ -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 ""),
Copy link
Collaborator

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.

@khgouldy
Copy link
Contributor

khgouldy commented Feb 2, 2023

Hey - can we get this merged 🙏
Either solutions works.

Copy link
Collaborator

@mayurinehate mayurinehate left a 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

@jjoyce0510 jjoyce0510 enabled auto-merge (squash) February 3, 2023 21:05
@jjoyce0510 jjoyce0510 merged commit b24f206 into datahub-project:master Feb 6, 2023
ericyomi pushed a commit to ericyomi/datahub that referenced this pull request Feb 8, 2023
@hsheth2 hsheth2 deleted the tableau-clean-query branch February 14, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tableau ingestion fails when applying string methods to NoneType variables
4 participants