Skip to content

Commit

Permalink
lint: fixed static type check issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-salvi-apptware committed Dec 26, 2024
1 parent e2bc694 commit 07f565f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
):
yield from auto_workunit(
generate_procedure_lineage(
schema_resolver=self.schema_resolver,
schema_resolver=self.get_schema_resolver(),
procedure=procedure,
procedure_job_urn=MSSQLDataJob(entity=procedure).urn,
is_temp_table=self.is_temp_table,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
TagAssociationClass,
ViewPropertiesClass,
)
from datahub.sql_parsing.schema_resolver import SchemaResolver
from datahub.sql_parsing.sql_parsing_aggregator import SqlParsingAggregator
from datahub.telemetry import telemetry
from datahub.utilities.registries.domain_registry import DomainRegistry
Expand Down Expand Up @@ -1349,5 +1350,8 @@ def prepare_profiler_args(
schema=schema, table=table, partition=partition, custom_sql=custom_sql
)

def get_schema_resolver(self) -> SchemaResolver:
return self.aggregator._schema_resolver

def get_report(self):
return self.report

0 comments on commit 07f565f

Please sign in to comment.