acryl-datahub 1.2.0.11rc3__py3-none-any.whl → 1.2.0.11rc4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of acryl-datahub might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
- acryl_datahub-1.2.0.11rc3.dist-info/licenses/LICENSE,sha256=9xNHpsD0uYF5ONzXsKDCuHHB-xbiCrSbueWXqrTNsxk,11365
1
+ acryl_datahub-1.2.0.11rc4.dist-info/licenses/LICENSE,sha256=9xNHpsD0uYF5ONzXsKDCuHHB-xbiCrSbueWXqrTNsxk,11365
2
2
  datahub/__init__.py,sha256=aq_i5lVREmoLfYIqcx_pEQicO855YlhD19tWc1eZZNI,59
3
3
  datahub/__main__.py,sha256=pegIvQ9hzK7IhqVeUi1MeADSZ2QlP-D3K0OQdEg55RU,106
4
- datahub/_version.py,sha256=NCAi9sjvJm9IaM8-kY2BCXIjwGS5PqRR_MzW1NKfjF8,324
4
+ datahub/_version.py,sha256=_VILFvBE67asqk9L6Hqvhg65t1Q8zAbMrsKHYLWBj4I,324
5
5
  datahub/entrypoints.py,sha256=9Qf-37rNnTzbGlx8S75OCDazIclFp6zWNcCEL1zCZto,9015
6
6
  datahub/errors.py,sha256=p5rFAdAGVCk4Lqolol1YvthceadUSwpaCxLXRcyCCFQ,676
7
7
  datahub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -498,7 +498,7 @@ datahub/ingestion/source/snowflake/snowflake_connection.py,sha256=uSHdPqigRzjeNx
498
498
  datahub/ingestion/source/snowflake/snowflake_data_reader.py,sha256=ffR5E2uhD71FUMXd3XOg2rHwrp1rbbGEFTAbqKcmI2s,2195
499
499
  datahub/ingestion/source/snowflake/snowflake_lineage_v2.py,sha256=nam-bYV6wL9LfR-Tt50Qe_Kea61IuWS-lLu5__aDxk8,21853
500
500
  datahub/ingestion/source/snowflake/snowflake_profiler.py,sha256=PmQi-qDlRhdJ-PsJ7x-EScIiswWRAxDDOKHydvN3mTY,7404
501
- datahub/ingestion/source/snowflake/snowflake_queries.py,sha256=Nb7zn531KmCLgKwJgSjyst6vV-QLxFWk4Z8aHqMcCwk,44866
501
+ datahub/ingestion/source/snowflake/snowflake_queries.py,sha256=lAMA--X3nbWFdNs1DTHNm7crctB3RilX_pB-zy47piI,45528
502
502
  datahub/ingestion/source/snowflake/snowflake_query.py,sha256=wLDaYZrWJ0794KKn69rB_QF0_8Bzu5l_7L6mD77KVc4,40469
503
503
  datahub/ingestion/source/snowflake/snowflake_report.py,sha256=GPuQTOaR8SCqMBme6Q55vX4zzT4m3ELmp83rp_grQA0,6808
504
504
  datahub/ingestion/source/snowflake/snowflake_schema.py,sha256=Dh_p0WpSaWOFMCsBgd3FpkQ_65k3QPq2VUnapp2VKuY,41431
@@ -1123,8 +1123,8 @@ datahub_provider/operators/datahub_assertion_operator.py,sha256=uvTQ-jk2F0sbqqxp
1123
1123
  datahub_provider/operators/datahub_assertion_sensor.py,sha256=lCBj_3x1cf5GMNpHdfkpHuyHfVxsm6ff5x2Z5iizcAo,140
1124
1124
  datahub_provider/operators/datahub_operation_operator.py,sha256=aevDp2FzX7FxGlXrR0khoHNbxbhKR2qPEX5e8O2Jyzw,174
1125
1125
  datahub_provider/operators/datahub_operation_sensor.py,sha256=8fcdVBCEPgqy1etTXgLoiHoJrRt_nzFZQMdSzHqSG7M,168
1126
- acryl_datahub-1.2.0.11rc3.dist-info/METADATA,sha256=DjrRkkPjZr9X962jox6AsQtASrlic419YuFGPy_LF3o,184162
1127
- acryl_datahub-1.2.0.11rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1128
- acryl_datahub-1.2.0.11rc3.dist-info/entry_points.txt,sha256=pzsBoTx-D-iTcmpX8oCGCyzlHP2112EygUMzZWz56M8,10105
1129
- acryl_datahub-1.2.0.11rc3.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
1130
- acryl_datahub-1.2.0.11rc3.dist-info/RECORD,,
1126
+ acryl_datahub-1.2.0.11rc4.dist-info/METADATA,sha256=SxpOrYaLX-58eO685hRF4fMeo3zkiDS0yFIVNELypnI,184162
1127
+ acryl_datahub-1.2.0.11rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1128
+ acryl_datahub-1.2.0.11rc4.dist-info/entry_points.txt,sha256=pzsBoTx-D-iTcmpX8oCGCyzlHP2112EygUMzZWz56M8,10105
1129
+ acryl_datahub-1.2.0.11rc4.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
1130
+ acryl_datahub-1.2.0.11rc4.dist-info/RECORD,,
datahub/_version.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # Published at https://pypi.org/project/acryl-datahub/.
2
2
  __package_name__ = "acryl-datahub"
3
- __version__ = "1.2.0.11rc3"
3
+ __version__ = "1.2.0.11rc4"
4
4
 
5
5
 
6
6
  def is_dev_mode() -> bool:
@@ -297,15 +297,31 @@ class SnowflakeQueriesExtractor(SnowflakeStructuredReportMixin, Closeable):
297
297
  if use_cached_audit_log:
298
298
  logger.info(f"Using cached audit log at {audit_log_file}")
299
299
  else:
300
- logger.info(f"Fetching audit log into {audit_log_file}")
300
+ # Check if any query-based features are enabled before fetching
301
+ needs_query_data = any(
302
+ [
303
+ self.config.include_lineage,
304
+ self.config.include_queries,
305
+ self.config.include_usage_statistics,
306
+ self.config.include_query_usage_statistics,
307
+ self.config.include_operations,
308
+ ]
309
+ )
310
+
311
+ if not needs_query_data:
312
+ logger.info(
313
+ "All query-based features are disabled. Skipping expensive query log fetch."
314
+ )
315
+ else:
316
+ logger.info(f"Fetching audit log into {audit_log_file}")
301
317
 
302
- with self.report.copy_history_fetch_timer:
303
- for copy_entry in self.fetch_copy_history():
304
- queries.append(copy_entry)
318
+ with self.report.copy_history_fetch_timer:
319
+ for copy_entry in self.fetch_copy_history():
320
+ queries.append(copy_entry)
305
321
 
306
- with self.report.query_log_fetch_timer:
307
- for entry in self.fetch_query_log(users):
308
- queries.append(entry)
322
+ with self.report.query_log_fetch_timer:
323
+ for entry in self.fetch_query_log(users):
324
+ queries.append(entry)
309
325
 
310
326
  stored_proc_tracker: StoredProcLineageTracker = self._exit_stack.enter_context(
311
327
  StoredProcLineageTracker(