acryl-datahub 1.0.0rc16__py3-none-any.whl → 1.0.0rc17__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.

@@ -777,6 +777,7 @@ class HiveSource(TwoTierSQLAlchemySource):
777
777
  column,
778
778
  inspector,
779
779
  pk_constraints,
780
+ partition_keys=partition_keys,
780
781
  )
781
782
 
782
783
  if self._COMPLEX_TYPE.match(fields[0].nativeDataType) and isinstance(
@@ -849,3 +850,15 @@ class HiveSource(TwoTierSQLAlchemySource):
849
850
  default_db=default_db,
850
851
  default_schema=default_schema,
851
852
  )
853
+
854
+ def get_partitions(
855
+ self, inspector: Inspector, schema: str, table: str
856
+ ) -> Optional[List[str]]:
857
+ partition_columns: List[dict] = inspector.get_indexes(
858
+ table_name=table, schema=schema
859
+ )
860
+ for partition_column in partition_columns:
861
+ if partition_column.get("column_names"):
862
+ return partition_column.get("column_names")
863
+
864
+ return []