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): improve extract-sql-agg-log command #12803

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Mar 6, 2025

Adds the ability to extract all tables, instead of just the query log table. This lets us inspect the full internal state of the SqlParsingAggregator.

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

Adds the ability to extract all tables, instead of just the query log
table. This lets us inspect the full internal state of the
SqlParsingAggregator.
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Mar 6, 2025
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
metadata-ingestion/src/datahub/cli/check_cli.py 88.57% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Mar 6, 2025
@@ -391,29 +395,78 @@ def test_path_spec(config: str, input: str, path_spec_key: str) -> None:
raise e


def _jsonify(data: Any) -> Any:
if dataclasses.is_dataclass(data):
# dataclasses.asdict() is recursive, which is not what we want.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we want dataclassess recursion if we do as well in recursion?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated the comment to clarify

@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed needs-review Label for PRs that need review from a maintainer. labels Mar 6, 2025
@github-actions github-actions bot requested a deployment to datahub-wheels (Preview) March 6, 2025 16:54 Abandoned
@hsheth2 hsheth2 merged commit a646185 into master Mar 6, 2025
77 checks passed
@hsheth2 hsheth2 deleted the improve-extract-sql-agg-command branch March 6, 2025 19:08
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