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

feat(ingest): add escape hatch methods to SqlParsingAggregator #9860

Merged
merged 6 commits into from
Feb 21, 2024

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Feb 15, 2024

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

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Feb 15, 2024
query_fingerprint = get_query_fingerprint(
known_query_lineage.query_text, self.platform.platform_name
)
# TODO format the query text?
Copy link
Contributor

Choose a reason for hiding this comment

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

I think formatting the query might be useful if we don't do it on the frontend side when we are showing the queries, but it should be optional.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah I will do it in a future PR

QueryMetadata(
query_id=query_fingerprint,
formatted_query_string=known_query_lineage.query_text,
session_id=_MISSING_SESSION_ID,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a value if we can pass in session id to the know lineage as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

In some case I think we should be able to capture

Copy link
Collaborator Author

@hsheth2 hsheth2 Feb 21, 2024

Choose a reason for hiding this comment

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

yup I'll add that in the next PR

@hsheth2 hsheth2 merged commit f13ae77 into master Feb 21, 2024
56 checks passed
@hsheth2 hsheth2 deleted the aggregator-methods branch February 21, 2024 19:33
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.

2 participants