Skip to content

Commit

Permalink
feat(ingest): configurable query generation in combined sources (data…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Jan 8, 2025
1 parent afa94a5 commit cbb36bb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
include_lineage=self.config.include_table_lineage,
include_usage_statistics=self.config.include_usage_statistics,
include_operations=self.config.usage.include_operational_stats,
include_queries=self.config.include_queries,
include_query_usage_statistics=self.config.include_query_usage_statistics,
top_n_queries=self.config.usage.top_n_queries,
region_qualifiers=self.config.region_qualifiers,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,14 @@ class BigQueryV2Config(
default=False,
description="If enabled, uses the new queries extractor to extract queries from bigquery.",
)
include_queries: bool = Field(
default=True,
description="If enabled, generate query entities associated with lineage edges. Only applicable if `use_queries_v2` is enabled.",
)
include_query_usage_statistics: bool = Field(
default=True,
description="If enabled, generate query popularity statistics. Only applicable if `use_queries_v2` is enabled.",
)

@property
def have_table_data_read_permission(self) -> bool:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ class SnowflakeV2Config(
default=False,
description="If enabled, uses the new queries extractor to extract queries from snowflake.",
)
include_queries: bool = Field(
default=True,
description="If enabled, generate query entities associated with lineage edges. Only applicable if `use_queries_v2` is enabled.",
)
include_query_usage_statistics: bool = Field(
default=True,
description="If enabled, generate query popularity statistics. Only applicable if `use_queries_v2` is enabled.",
)

lazy_schema_resolver: bool = Field(
default=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
include_lineage=self.config.include_table_lineage,
include_usage_statistics=self.config.include_usage_stats,
include_operations=self.config.include_operational_stats,
include_queries=self.config.include_queries,
include_query_usage_statistics=self.config.include_query_usage_statistics,
user_email_pattern=self.config.user_email_pattern,
),
structured_report=self.report,
Expand Down

0 comments on commit cbb36bb

Please sign in to comment.