acryl-datahub 0.15.0.1rc13__py3-none-any.whl → 0.15.0.1rc15__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.

Files changed (36) hide show
  1. {acryl_datahub-0.15.0.1rc13.dist-info → acryl_datahub-0.15.0.1rc15.dist-info}/METADATA +2413 -2413
  2. {acryl_datahub-0.15.0.1rc13.dist-info → acryl_datahub-0.15.0.1rc15.dist-info}/RECORD +33 -30
  3. {acryl_datahub-0.15.0.1rc13.dist-info → acryl_datahub-0.15.0.1rc15.dist-info}/WHEEL +1 -1
  4. datahub/__init__.py +1 -1
  5. datahub/emitter/mce_builder.py +3 -3
  6. datahub/emitter/mcp_patch_builder.py +36 -12
  7. datahub/ingestion/source/bigquery_v2/bigquery.py +10 -18
  8. datahub/ingestion/source/bigquery_v2/bigquery_config.py +3 -9
  9. datahub/ingestion/source/bigquery_v2/bigquery_schema_gen.py +11 -17
  10. datahub/ingestion/source/bigquery_v2/lineage.py +9 -22
  11. datahub/ingestion/source/gc/datahub_gc.py +3 -0
  12. datahub/ingestion/source/gc/execution_request_cleanup.py +13 -5
  13. datahub/ingestion/source/gc/soft_deleted_entity_cleanup.py +28 -21
  14. datahub/ingestion/source/snowflake/snowflake_queries.py +6 -4
  15. datahub/ingestion/source/tableau/tableau.py +53 -18
  16. datahub/ingestion/source/tableau/tableau_common.py +18 -0
  17. datahub/ingestion/source/usage/usage_common.py +15 -1
  18. datahub/specific/aspect_helpers/__init__.py +0 -0
  19. datahub/specific/aspect_helpers/custom_properties.py +79 -0
  20. datahub/specific/aspect_helpers/ownership.py +67 -0
  21. datahub/specific/aspect_helpers/structured_properties.py +72 -0
  22. datahub/specific/aspect_helpers/tags.py +42 -0
  23. datahub/specific/aspect_helpers/terms.py +43 -0
  24. datahub/specific/chart.py +28 -184
  25. datahub/specific/dashboard.py +31 -196
  26. datahub/specific/datajob.py +34 -189
  27. datahub/specific/dataproduct.py +24 -86
  28. datahub/specific/dataset.py +48 -133
  29. datahub/specific/form.py +12 -32
  30. datahub/specific/structured_property.py +9 -9
  31. datahub/sql_parsing/sql_parsing_aggregator.py +1 -3
  32. datahub/specific/custom_properties.py +0 -37
  33. datahub/specific/ownership.py +0 -48
  34. datahub/specific/structured_properties.py +0 -53
  35. {acryl_datahub-0.15.0.1rc13.dist-info → acryl_datahub-0.15.0.1rc15.dist-info}/entry_points.txt +0 -0
  36. {acryl_datahub-0.15.0.1rc13.dist-info → acryl_datahub-0.15.0.1rc15.dist-info}/top_level.txt +0 -0
@@ -1,53 +0,0 @@
1
- from typing import Generic, List, TypeVar, Union
2
-
3
- from datahub.emitter.mcp_patch_builder import MetadataPatchProposal
4
- from datahub.metadata.schema_classes import StructuredPropertyValueAssignmentClass
5
- from datahub.utilities.urns.structured_properties_urn import (
6
- make_structured_property_urn,
7
- )
8
-
9
- _Parent = TypeVar("_Parent", bound=MetadataPatchProposal)
10
-
11
-
12
- class StructuredPropertiesPatchHelper(Generic[_Parent]):
13
- def __init__(
14
- self,
15
- parent: _Parent,
16
- aspect_name: str = "structuredProperties",
17
- ) -> None:
18
- self.aspect_name = aspect_name
19
- self._parent = parent
20
- self.aspect_field = "properties"
21
-
22
- def parent(self) -> _Parent:
23
- return self._parent
24
-
25
- def set_property(
26
- self, key: str, value: Union[str, float, List[Union[str, float]]]
27
- ) -> "StructuredPropertiesPatchHelper":
28
- self.remove_property(key)
29
- self.add_property(key, value)
30
- return self
31
-
32
- def remove_property(self, key: str) -> "StructuredPropertiesPatchHelper":
33
- self._parent._add_patch(
34
- self.aspect_name,
35
- "remove",
36
- path=(self.aspect_field, make_structured_property_urn(key)),
37
- value={},
38
- )
39
- return self
40
-
41
- def add_property(
42
- self, key: str, value: Union[str, float, List[Union[str, float]]]
43
- ) -> "StructuredPropertiesPatchHelper":
44
- self._parent._add_patch(
45
- self.aspect_name,
46
- "add",
47
- path=(self.aspect_field, make_structured_property_urn(key)),
48
- value=StructuredPropertyValueAssignmentClass(
49
- propertyUrn=make_structured_property_urn(key),
50
- values=value if isinstance(value, list) else [value],
51
- ),
52
- )
53
- return self