acryl-datahub 0.15.0.2rc5__py3-none-any.whl → 0.15.0.2rc6__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,4 +1,4 @@
1
- datahub/__init__.py,sha256=ytRckpG4lVjyN5pUIlOJTPXvNHOEyI-zqLb7oyer--A,576
1
+ datahub/__init__.py,sha256=LkyndK4jD_kpbP5zlWtRZY_adYH59shEIFzUnoBjloM,576
2
2
  datahub/__main__.py,sha256=pegIvQ9hzK7IhqVeUi1MeADSZ2QlP-D3K0OQdEg55RU,106
3
3
  datahub/entrypoints.py,sha256=3-qSfXAx3Z0FEkBV5tlO8fQr4xk4ySeDRMVTpS5Xd6A,7793
4
4
  datahub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -305,7 +305,7 @@ datahub/ingestion/source/gc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
305
305
  datahub/ingestion/source/gc/datahub_gc.py,sha256=6O-TxU2uCJ1Y8NNzJDufUd3ymapo--E3hTeIuy_QDtY,12763
306
306
  datahub/ingestion/source/gc/dataprocess_cleanup.py,sha256=86Tm3NNWMf0xM4TklNIEeNOjEingKpYy-XvCPeaAb4k,17125
307
307
  datahub/ingestion/source/gc/execution_request_cleanup.py,sha256=VbZ-Xzryl5TMRapu7nlxlsXS8T8lFZcHK9AJnEadJ8Q,11111
308
- datahub/ingestion/source/gc/soft_deleted_entity_cleanup.py,sha256=PTx1XmD4Jv9SzXzHqUbFpT3vKGCtkD01MeBUaq1p4no,12083
308
+ datahub/ingestion/source/gc/soft_deleted_entity_cleanup.py,sha256=THKk2sdMIWLymgu0rJCwjL2qcaR9FfeX0_13NpA-F-c,12295
309
309
  datahub/ingestion/source/gcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
310
310
  datahub/ingestion/source/gcs/gcs_source.py,sha256=iwvj4JwjyVWRP1Vq106sUtQhh0GuOYVSu9zCa1wCZN0,6189
311
311
  datahub/ingestion/source/gcs/gcs_utils.py,sha256=_78KM863XXgkVLmZLtYGF5PJNnZas1go-XRtOq-79lo,1047
@@ -990,8 +990,8 @@ datahub_provider/operators/datahub_assertion_operator.py,sha256=uvTQ-jk2F0sbqqxp
990
990
  datahub_provider/operators/datahub_assertion_sensor.py,sha256=lCBj_3x1cf5GMNpHdfkpHuyHfVxsm6ff5x2Z5iizcAo,140
991
991
  datahub_provider/operators/datahub_operation_operator.py,sha256=aevDp2FzX7FxGlXrR0khoHNbxbhKR2qPEX5e8O2Jyzw,174
992
992
  datahub_provider/operators/datahub_operation_sensor.py,sha256=8fcdVBCEPgqy1etTXgLoiHoJrRt_nzFZQMdSzHqSG7M,168
993
- acryl_datahub-0.15.0.2rc5.dist-info/METADATA,sha256=MBQ2EWJtuUyLlzfHsMfnf6niYbVl3nBvZJhV3qJ5e10,173662
994
- acryl_datahub-0.15.0.2rc5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
995
- acryl_datahub-0.15.0.2rc5.dist-info/entry_points.txt,sha256=xnPSPLK3bJGADxe4TDS4wL4u0FT_PGlahDa-ENYdYCQ,9512
996
- acryl_datahub-0.15.0.2rc5.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
997
- acryl_datahub-0.15.0.2rc5.dist-info/RECORD,,
993
+ acryl_datahub-0.15.0.2rc6.dist-info/METADATA,sha256=FVQAozQ0fqRIJ7tEhjR6fc0rsuJXRUoyABPabW540vM,173662
994
+ acryl_datahub-0.15.0.2rc6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
995
+ acryl_datahub-0.15.0.2rc6.dist-info/entry_points.txt,sha256=xnPSPLK3bJGADxe4TDS4wL4u0FT_PGlahDa-ENYdYCQ,9512
996
+ acryl_datahub-0.15.0.2rc6.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
997
+ acryl_datahub-0.15.0.2rc6.dist-info/RECORD,,
datahub/__init__.py CHANGED
@@ -3,7 +3,7 @@ import warnings
3
3
 
4
4
  # Published at https://pypi.org/project/acryl-datahub/.
5
5
  __package_name__ = "acryl-datahub"
6
- __version__ = "0.15.0.2rc5"
6
+ __version__ = "0.15.0.2rc6"
7
7
 
8
8
 
9
9
  def is_dev_mode() -> bool:
@@ -99,7 +99,7 @@ class SoftDeletedEntitiesCleanupConfig(ConfigModel):
99
99
 
100
100
  @dataclass
101
101
  class SoftDeletedEntitiesReport(SourceReport):
102
- num_queries_found: int = 0
102
+ num_entities_found: Dict[str, int] = field(default_factory=dict)
103
103
  num_soft_deleted_entity_processed: int = 0
104
104
  num_soft_deleted_retained_due_to_age: int = 0
105
105
  num_soft_deleted_entity_removal_started: int = 0
@@ -277,7 +277,11 @@ class SoftDeletedEntitiesCleanup:
277
277
  # We make the batch size = config after call has succeeded once
278
278
  batch_size = self.config.batch_size
279
279
  scroll_id = scroll_across_entities.get("nextScrollId")
280
- self.report.num_queries_found += scroll_across_entities.get("count")
280
+ if entity_type not in self.report.num_entities_found:
281
+ self.report.num_entities_found[entity_type] = 0
282
+ self.report.num_entities_found[entity_type] += scroll_across_entities.get(
283
+ "count"
284
+ )
281
285
  for query in scroll_across_entities.get("searchResults"):
282
286
  yield query["entity"]["urn"]
283
287