acryl-datahub 1.2.0.5rc2__py3-none-any.whl → 1.2.0.6rc1__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.
- {acryl_datahub-1.2.0.5rc2.dist-info → acryl_datahub-1.2.0.6rc1.dist-info}/METADATA +2663 -2663
- {acryl_datahub-1.2.0.5rc2.dist-info → acryl_datahub-1.2.0.6rc1.dist-info}/RECORD +8 -8
- datahub/_version.py +1 -1
- datahub/ingestion/api/report.py +13 -1
- {acryl_datahub-1.2.0.5rc2.dist-info → acryl_datahub-1.2.0.6rc1.dist-info}/WHEEL +0 -0
- {acryl_datahub-1.2.0.5rc2.dist-info → acryl_datahub-1.2.0.6rc1.dist-info}/entry_points.txt +0 -0
- {acryl_datahub-1.2.0.5rc2.dist-info → acryl_datahub-1.2.0.6rc1.dist-info}/licenses/LICENSE +0 -0
- {acryl_datahub-1.2.0.5rc2.dist-info → acryl_datahub-1.2.0.6rc1.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
acryl_datahub-1.2.0.
|
|
1
|
+
acryl_datahub-1.2.0.6rc1.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=
|
|
4
|
+
datahub/_version.py,sha256=UpTxFRBPZj7BDFXx0obVG8eaUPk2TF8H9bqlPMVnt2A,323
|
|
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
|
|
@@ -148,7 +148,7 @@ datahub/ingestion/api/incremental_properties_helper.py,sha256=KzdxdrQtaMV2XMHfPs
|
|
|
148
148
|
datahub/ingestion/api/ingestion_job_checkpointing_provider_base.py,sha256=3lLdkkxVqE9MVc26cdXImPeWy16az5BwgcorWxeBV50,1759
|
|
149
149
|
datahub/ingestion/api/pipeline_run_listener.py,sha256=5uBP__LbMQxJ2utlf07cIzQINqPbUOKiZyOJta6a0og,713
|
|
150
150
|
datahub/ingestion/api/registry.py,sha256=LbdZr89465Lj7ptQRVB4vI1JR1igWABvQFj9-WX63bI,7454
|
|
151
|
-
datahub/ingestion/api/report.py,sha256
|
|
151
|
+
datahub/ingestion/api/report.py,sha256=-xduHhIRUgf5G51mUb3uTi6GBxVli6ZK25AS5ikXuII,18312
|
|
152
152
|
datahub/ingestion/api/report_helpers.py,sha256=WbUC1kQeaKqIagGV3XzfPmPs7slAT1mfNY4og2BH2A8,994
|
|
153
153
|
datahub/ingestion/api/sink.py,sha256=GZt48PV56FAhNoma-V5EwwRZvezhb40YH_zprm8_Yo0,4961
|
|
154
154
|
datahub/ingestion/api/source.py,sha256=uf0fNbiOy0bS_aKFOcNv6NvuZe0LSDIDdNza9hraP7s,21857
|
|
@@ -1104,8 +1104,8 @@ datahub_provider/operators/datahub_assertion_operator.py,sha256=uvTQ-jk2F0sbqqxp
|
|
|
1104
1104
|
datahub_provider/operators/datahub_assertion_sensor.py,sha256=lCBj_3x1cf5GMNpHdfkpHuyHfVxsm6ff5x2Z5iizcAo,140
|
|
1105
1105
|
datahub_provider/operators/datahub_operation_operator.py,sha256=aevDp2FzX7FxGlXrR0khoHNbxbhKR2qPEX5e8O2Jyzw,174
|
|
1106
1106
|
datahub_provider/operators/datahub_operation_sensor.py,sha256=8fcdVBCEPgqy1etTXgLoiHoJrRt_nzFZQMdSzHqSG7M,168
|
|
1107
|
-
acryl_datahub-1.2.0.
|
|
1108
|
-
acryl_datahub-1.2.0.
|
|
1109
|
-
acryl_datahub-1.2.0.
|
|
1110
|
-
acryl_datahub-1.2.0.
|
|
1111
|
-
acryl_datahub-1.2.0.
|
|
1107
|
+
acryl_datahub-1.2.0.6rc1.dist-info/METADATA,sha256=d_JiiaPjg1a5n4u__cmZ1gBZ7FpY1qf6flPFgzZM2D8,182056
|
|
1108
|
+
acryl_datahub-1.2.0.6rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1109
|
+
acryl_datahub-1.2.0.6rc1.dist-info/entry_points.txt,sha256=bnGf6eX9UhiW8yVHtt6MJCVcmLErvrVQxTJAayA-PKc,9885
|
|
1110
|
+
acryl_datahub-1.2.0.6rc1.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
|
|
1111
|
+
acryl_datahub-1.2.0.6rc1.dist-info/RECORD,,
|
datahub/_version.py
CHANGED
datahub/ingestion/api/report.py
CHANGED
|
@@ -23,6 +23,7 @@ from datahub.ingestion.autogenerated.lineage_helper import is_lineage_aspect
|
|
|
23
23
|
from datahub.metadata.com.linkedin.pegasus2avro.mxe import MetadataChangeEvent
|
|
24
24
|
from datahub.metadata.schema_classes import (
|
|
25
25
|
MetadataChangeProposalClass,
|
|
26
|
+
StatusClass,
|
|
26
27
|
SubTypesClass,
|
|
27
28
|
UpstreamLineageClass,
|
|
28
29
|
)
|
|
@@ -161,6 +162,7 @@ class SourceReportSubtypes:
|
|
|
161
162
|
entity_type: str
|
|
162
163
|
subType: str = field(default="unknown")
|
|
163
164
|
aspects: Dict[str, int] = field(default_factory=dict)
|
|
165
|
+
soft_deleted: bool = field(default=False)
|
|
164
166
|
|
|
165
167
|
|
|
166
168
|
class ReportAttribute(BaseModel):
|
|
@@ -217,6 +219,7 @@ class ExamplesReport(Report, Closeable):
|
|
|
217
219
|
"entityType": lambda val: val.entity_type,
|
|
218
220
|
"subTypes": lambda val: val.subType,
|
|
219
221
|
"aspects": lambda val: json.dumps(val.aspects),
|
|
222
|
+
"soft_deleted": lambda val: val.soft_deleted,
|
|
220
223
|
},
|
|
221
224
|
)
|
|
222
225
|
|
|
@@ -376,6 +379,13 @@ class ExamplesReport(Report, Closeable):
|
|
|
376
379
|
subType=sub_type,
|
|
377
380
|
aspects=aspects_dict,
|
|
378
381
|
)
|
|
382
|
+
if (
|
|
383
|
+
isinstance(mcp.aspect, StatusClass)
|
|
384
|
+
and mcp is not None
|
|
385
|
+
and mcp.aspect is not None
|
|
386
|
+
):
|
|
387
|
+
self._file_based_dict[urn].soft_deleted = mcp.aspect.removed
|
|
388
|
+
self._file_based_dict.mark_dirty(urn)
|
|
379
389
|
|
|
380
390
|
def _store_workunit_data(self, wu: MetadataWorkUnit) -> None:
|
|
381
391
|
urn = wu.get_urn()
|
|
@@ -401,7 +411,8 @@ class ExamplesReport(Report, Closeable):
|
|
|
401
411
|
query = """
|
|
402
412
|
SELECT entityType, subTypes, aspects, count(*) as count
|
|
403
413
|
FROM urn_aspects
|
|
404
|
-
|
|
414
|
+
WHERE soft_deleted = 0
|
|
415
|
+
GROUP BY entityType, subTypes, aspects
|
|
405
416
|
"""
|
|
406
417
|
|
|
407
418
|
entity_subtype_aspect_counts: Dict[str, Dict[str, Dict[str, int]]] = (
|
|
@@ -410,6 +421,7 @@ class ExamplesReport(Report, Closeable):
|
|
|
410
421
|
entity_subtype_aspect_counts_exist: Dict[str, Dict[str, Dict[str, int]]] = (
|
|
411
422
|
defaultdict(lambda: defaultdict(lambda: defaultdict(int)))
|
|
412
423
|
)
|
|
424
|
+
|
|
413
425
|
for row in self._file_based_dict.sql_query(query):
|
|
414
426
|
entity_type = row["entityType"]
|
|
415
427
|
sub_type = row["subTypes"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|