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): fix reporting for missing secure view lineage #12430

Merged
merged 6 commits into from
Jan 24, 2025

Conversation

mayurinehate
Copy link
Collaborator

Secure Views in databases created from Snowflake Shares will always be missing on view definitions and that need not be reported as warning. We would report such views as info in pipeline run.

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

mayurinehate and others added 2 commits January 21, 2025 20:50
Secure Views in databases created from Snowflake Shares will always
be missing on view definitions and that need not be reported as
warning. We would report such views as info in pipeline run.
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 22, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Jan 22, 2025
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...ingestion/source/snowflake/snowflake_schema_gen.py 85.35% <100.00%> (+2.02%) ⬆️

... and 9 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f4c0927...cc40240. Read the comment docs.

except KeyError:
# Received secure view definitions but the view is not present in results
self.structured_reporter.info(
"Secure view definition not found. Lineage will be missing for the view.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

in general, let's always set both title and message for structured logs

otherwise the default title is "An unexpected issue occurred" which isn't great

@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed needs-review Label for PRs that need review from a maintainer. labels Jan 23, 2025
@mayurinehate mayurinehate merged commit 0f538d8 into datahub-project:master Jan 24, 2025
190 checks passed
eagle-25 pushed a commit to eagle-25/datahub that referenced this pull request Feb 12, 2025
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 pending-submitter-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants