acryl-datahub 1.0.0.1rc1__py3-none-any.whl → 1.0.0.1rc3__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.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/METADATA +2575 -2574
- {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/RECORD +77 -60
- {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/WHEEL +1 -1
- {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/entry_points.txt +2 -1
- datahub/_version.py +1 -1
- datahub/api/entities/dataset/dataset.py +1 -28
- datahub/emitter/request_helper.py +19 -14
- datahub/emitter/rest_emitter.py +2 -2
- datahub/ingestion/api/source.py +6 -2
- datahub/ingestion/api/source_helpers.py +6 -2
- datahub/ingestion/extractor/schema_util.py +1 -0
- datahub/ingestion/graph/client.py +6 -11
- datahub/ingestion/source/common/data_platforms.py +23 -0
- datahub/ingestion/source/common/gcp_credentials_config.py +6 -0
- datahub/ingestion/source/common/subtypes.py +16 -1
- datahub/ingestion/source/data_lake_common/path_spec.py +21 -1
- datahub/ingestion/source/dbt/dbt_common.py +6 -4
- datahub/ingestion/source/dbt/dbt_core.py +4 -6
- datahub/ingestion/source/dbt/dbt_tests.py +8 -6
- datahub/ingestion/source/dremio/dremio_datahub_source_mapping.py +1 -1
- datahub/ingestion/source/dremio/dremio_entities.py +6 -5
- datahub/ingestion/source/dremio/dremio_source.py +96 -117
- datahub/ingestion/source/hex/__init__.py +0 -0
- datahub/ingestion/source/hex/api.py +394 -0
- datahub/ingestion/source/hex/constants.py +3 -0
- datahub/ingestion/source/hex/hex.py +167 -0
- datahub/ingestion/source/hex/mapper.py +372 -0
- datahub/ingestion/source/hex/model.py +68 -0
- datahub/ingestion/source/iceberg/iceberg.py +62 -66
- datahub/ingestion/source/mlflow.py +217 -8
- datahub/ingestion/source/mode.py +11 -1
- datahub/ingestion/source/openapi.py +69 -34
- datahub/ingestion/source/powerbi/powerbi.py +29 -23
- datahub/ingestion/source/s3/source.py +11 -0
- datahub/ingestion/source/slack/slack.py +399 -82
- datahub/ingestion/source/snowflake/constants.py +1 -0
- datahub/ingestion/source/snowflake/snowflake_config.py +14 -1
- datahub/ingestion/source/snowflake/snowflake_query.py +17 -0
- datahub/ingestion/source/snowflake/snowflake_report.py +3 -0
- datahub/ingestion/source/snowflake/snowflake_schema.py +29 -0
- datahub/ingestion/source/snowflake/snowflake_schema_gen.py +112 -42
- datahub/ingestion/source/snowflake/snowflake_utils.py +25 -1
- datahub/ingestion/source/sql/mssql/job_models.py +15 -1
- datahub/ingestion/source/sql/mssql/source.py +8 -4
- datahub/ingestion/source/sql/stored_procedures/__init__.py +0 -0
- datahub/ingestion/source/sql/stored_procedures/base.py +242 -0
- datahub/ingestion/source/sql/{mssql/stored_procedure_lineage.py → stored_procedures/lineage.py} +1 -29
- datahub/ingestion/source/superset.py +15 -6
- datahub/ingestion/source/vertexai/__init__.py +0 -0
- datahub/ingestion/source/vertexai/vertexai.py +1055 -0
- datahub/ingestion/source/vertexai/vertexai_config.py +29 -0
- datahub/ingestion/source/vertexai/vertexai_result_type_utils.py +68 -0
- datahub/metadata/_schema_classes.py +472 -1
- datahub/metadata/com/linkedin/pegasus2avro/dataplatform/slack/__init__.py +15 -0
- datahub/metadata/com/linkedin/pegasus2avro/event/__init__.py +11 -0
- datahub/metadata/com/linkedin/pegasus2avro/event/notification/__init__.py +15 -0
- datahub/metadata/com/linkedin/pegasus2avro/event/notification/settings/__init__.py +19 -0
- datahub/metadata/schema.avsc +309 -0
- datahub/metadata/schemas/CorpUserEditableInfo.avsc +14 -0
- datahub/metadata/schemas/CorpUserKey.avsc +2 -1
- datahub/metadata/schemas/CorpUserSettings.avsc +95 -0
- datahub/metadata/schemas/Deprecation.avsc +2 -0
- datahub/metadata/schemas/MLModelGroupProperties.avsc +16 -0
- datahub/metadata/schemas/MetadataChangeEvent.avsc +32 -0
- datahub/metadata/schemas/QueryProperties.avsc +20 -0
- datahub/metadata/schemas/Siblings.avsc +2 -0
- datahub/metadata/schemas/SlackUserInfo.avsc +160 -0
- datahub/sdk/dataset.py +122 -0
- datahub/sdk/entity.py +99 -3
- datahub/sdk/entity_client.py +27 -3
- datahub/sdk/main_client.py +22 -0
- datahub/sdk/search_filters.py +4 -4
- datahub/sql_parsing/split_statements.py +5 -1
- datahub/sql_parsing/sql_parsing_aggregator.py +6 -0
- datahub/sql_parsing/tool_meta_extractor.py +27 -2
- datahub/ingestion/source/vertexai.py +0 -695
- {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info/licenses}/LICENSE +0 -0
- {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/top_level.txt +0 -0
|
@@ -189,6 +189,10 @@ class SupersetConfig(
|
|
|
189
189
|
provider: str = Field(default="db", description="Superset provider.")
|
|
190
190
|
options: Dict = Field(default={}, description="")
|
|
191
191
|
|
|
192
|
+
timeout: int = Field(
|
|
193
|
+
default=10, description="Timeout of single API call to superset."
|
|
194
|
+
)
|
|
195
|
+
|
|
192
196
|
# TODO: Check and remove this if no longer needed.
|
|
193
197
|
# Config database_alias is removed from sql sources.
|
|
194
198
|
database_alias: Dict[str, str] = Field(
|
|
@@ -293,13 +297,16 @@ class SupersetSource(StatefulIngestionSourceBase):
|
|
|
293
297
|
}
|
|
294
298
|
)
|
|
295
299
|
|
|
296
|
-
# Test the connection
|
|
297
300
|
test_response = requests_session.get(
|
|
298
|
-
f"{self.config.connect_uri}/api/v1/dashboard/"
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
#
|
|
301
|
+
f"{self.config.connect_uri}/api/v1/dashboard/",
|
|
302
|
+
timeout=self.config.timeout,
|
|
303
|
+
)
|
|
304
|
+
if test_response.status_code != 200:
|
|
305
|
+
# throw an error and terminate ingestion,
|
|
306
|
+
# cannot proceed without access token
|
|
307
|
+
logger.error(
|
|
308
|
+
f"Failed to log in to Superset with status: {test_response.status_code}"
|
|
309
|
+
)
|
|
303
310
|
return requests_session
|
|
304
311
|
|
|
305
312
|
def paginate_entity_api_results(self, entity_type, page_size=100):
|
|
@@ -310,6 +317,7 @@ class SupersetSource(StatefulIngestionSourceBase):
|
|
|
310
317
|
response = self.session.get(
|
|
311
318
|
f"{self.config.connect_uri}/api/v1/{entity_type}",
|
|
312
319
|
params={"q": f"(page:{current_page},page_size:{page_size})"},
|
|
320
|
+
timeout=self.config.timeout,
|
|
313
321
|
)
|
|
314
322
|
|
|
315
323
|
if response.status_code != 200:
|
|
@@ -347,6 +355,7 @@ class SupersetSource(StatefulIngestionSourceBase):
|
|
|
347
355
|
def get_dataset_info(self, dataset_id: int) -> dict:
|
|
348
356
|
dataset_response = self.session.get(
|
|
349
357
|
f"{self.config.connect_uri}/api/v1/dataset/{dataset_id}",
|
|
358
|
+
timeout=self.config.timeout,
|
|
350
359
|
)
|
|
351
360
|
if dataset_response.status_code != 200:
|
|
352
361
|
logger.warning(f"Failed to get dataset info: {dataset_response.text}")
|
|
File without changes
|