Skip to content

Commit

Permalink
feat(ingest): add num_queries_used_in_lineage counter (datahub-proj…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Jan 15, 2025
1 parent a3c7a33 commit 96cfa46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ metadata-service/plugin/src/test/resources/sample-plugins/**
smoke-test/rollback-reports
coverage*.xml
.vercel
.envrc

# A long series of binary directories we should ignore
datahub-frontend/bin/main/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ class SqlAggregatorReport(Report):

# Queries.
num_queries_entities_generated: int = 0
num_queries_used_in_lineage: Optional[int] = None
num_queries_skipped_due_to_filters: int = 0

# Usage-related.
Expand Down Expand Up @@ -1200,6 +1201,7 @@ def gen_metadata(self) -> Iterable[MetadataChangeProposalWrapper]:
queries_generated: Set[QueryId] = set()

yield from self._gen_lineage_mcps(queries_generated)
self.report.num_queries_used_in_lineage = len(queries_generated)
yield from self._gen_usage_statistics_mcps()
yield from self._gen_operation_mcps(queries_generated)
yield from self._gen_remaining_queries(queries_generated)
Expand Down

0 comments on commit 96cfa46

Please sign in to comment.