Skip to content

Commit

Permalink
fix(ingest/unity-catalog) fixed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dushayntAW committed Jun 20, 2024
1 parent a43d5b2 commit 6ea1d29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:

if self.config.is_profiling_enabled():
self.report.report_ingestion_stage_start("Start warehouse")
# Can take several minutes, so start now and wait later
# Need to start the warehouse again for profiling,
# as it may have been stopped after ingestion might take
# longer time to complete
wait_on_warehouse = self.unity_catalog_api_proxy.start_warehouse()
if wait_on_warehouse is None:
self.report.report_failure(
Expand All @@ -321,7 +323,6 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
else:
# wait until warehouse is started
wait_on_warehouse.result()
self.report.report_ingestion_stage_start("Warehouse started")

self.report.report_ingestion_stage_start("Profiling")
if isinstance(self.config.profiling, UnityCatalogAnalyzeProfilerConfig):
Expand Down

0 comments on commit 6ea1d29

Please sign in to comment.