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.

Files changed (78) hide show
  1. {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/METADATA +2575 -2574
  2. {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/RECORD +77 -60
  3. {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/WHEEL +1 -1
  4. {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/entry_points.txt +2 -1
  5. datahub/_version.py +1 -1
  6. datahub/api/entities/dataset/dataset.py +1 -28
  7. datahub/emitter/request_helper.py +19 -14
  8. datahub/emitter/rest_emitter.py +2 -2
  9. datahub/ingestion/api/source.py +6 -2
  10. datahub/ingestion/api/source_helpers.py +6 -2
  11. datahub/ingestion/extractor/schema_util.py +1 -0
  12. datahub/ingestion/graph/client.py +6 -11
  13. datahub/ingestion/source/common/data_platforms.py +23 -0
  14. datahub/ingestion/source/common/gcp_credentials_config.py +6 -0
  15. datahub/ingestion/source/common/subtypes.py +16 -1
  16. datahub/ingestion/source/data_lake_common/path_spec.py +21 -1
  17. datahub/ingestion/source/dbt/dbt_common.py +6 -4
  18. datahub/ingestion/source/dbt/dbt_core.py +4 -6
  19. datahub/ingestion/source/dbt/dbt_tests.py +8 -6
  20. datahub/ingestion/source/dremio/dremio_datahub_source_mapping.py +1 -1
  21. datahub/ingestion/source/dremio/dremio_entities.py +6 -5
  22. datahub/ingestion/source/dremio/dremio_source.py +96 -117
  23. datahub/ingestion/source/hex/__init__.py +0 -0
  24. datahub/ingestion/source/hex/api.py +394 -0
  25. datahub/ingestion/source/hex/constants.py +3 -0
  26. datahub/ingestion/source/hex/hex.py +167 -0
  27. datahub/ingestion/source/hex/mapper.py +372 -0
  28. datahub/ingestion/source/hex/model.py +68 -0
  29. datahub/ingestion/source/iceberg/iceberg.py +62 -66
  30. datahub/ingestion/source/mlflow.py +217 -8
  31. datahub/ingestion/source/mode.py +11 -1
  32. datahub/ingestion/source/openapi.py +69 -34
  33. datahub/ingestion/source/powerbi/powerbi.py +29 -23
  34. datahub/ingestion/source/s3/source.py +11 -0
  35. datahub/ingestion/source/slack/slack.py +399 -82
  36. datahub/ingestion/source/snowflake/constants.py +1 -0
  37. datahub/ingestion/source/snowflake/snowflake_config.py +14 -1
  38. datahub/ingestion/source/snowflake/snowflake_query.py +17 -0
  39. datahub/ingestion/source/snowflake/snowflake_report.py +3 -0
  40. datahub/ingestion/source/snowflake/snowflake_schema.py +29 -0
  41. datahub/ingestion/source/snowflake/snowflake_schema_gen.py +112 -42
  42. datahub/ingestion/source/snowflake/snowflake_utils.py +25 -1
  43. datahub/ingestion/source/sql/mssql/job_models.py +15 -1
  44. datahub/ingestion/source/sql/mssql/source.py +8 -4
  45. datahub/ingestion/source/sql/stored_procedures/__init__.py +0 -0
  46. datahub/ingestion/source/sql/stored_procedures/base.py +242 -0
  47. datahub/ingestion/source/sql/{mssql/stored_procedure_lineage.py → stored_procedures/lineage.py} +1 -29
  48. datahub/ingestion/source/superset.py +15 -6
  49. datahub/ingestion/source/vertexai/__init__.py +0 -0
  50. datahub/ingestion/source/vertexai/vertexai.py +1055 -0
  51. datahub/ingestion/source/vertexai/vertexai_config.py +29 -0
  52. datahub/ingestion/source/vertexai/vertexai_result_type_utils.py +68 -0
  53. datahub/metadata/_schema_classes.py +472 -1
  54. datahub/metadata/com/linkedin/pegasus2avro/dataplatform/slack/__init__.py +15 -0
  55. datahub/metadata/com/linkedin/pegasus2avro/event/__init__.py +11 -0
  56. datahub/metadata/com/linkedin/pegasus2avro/event/notification/__init__.py +15 -0
  57. datahub/metadata/com/linkedin/pegasus2avro/event/notification/settings/__init__.py +19 -0
  58. datahub/metadata/schema.avsc +309 -0
  59. datahub/metadata/schemas/CorpUserEditableInfo.avsc +14 -0
  60. datahub/metadata/schemas/CorpUserKey.avsc +2 -1
  61. datahub/metadata/schemas/CorpUserSettings.avsc +95 -0
  62. datahub/metadata/schemas/Deprecation.avsc +2 -0
  63. datahub/metadata/schemas/MLModelGroupProperties.avsc +16 -0
  64. datahub/metadata/schemas/MetadataChangeEvent.avsc +32 -0
  65. datahub/metadata/schemas/QueryProperties.avsc +20 -0
  66. datahub/metadata/schemas/Siblings.avsc +2 -0
  67. datahub/metadata/schemas/SlackUserInfo.avsc +160 -0
  68. datahub/sdk/dataset.py +122 -0
  69. datahub/sdk/entity.py +99 -3
  70. datahub/sdk/entity_client.py +27 -3
  71. datahub/sdk/main_client.py +22 -0
  72. datahub/sdk/search_filters.py +4 -4
  73. datahub/sql_parsing/split_statements.py +5 -1
  74. datahub/sql_parsing/sql_parsing_aggregator.py +6 -0
  75. datahub/sql_parsing/tool_meta_extractor.py +27 -2
  76. datahub/ingestion/source/vertexai.py +0 -695
  77. {acryl_datahub-1.0.0.1rc1.dist-info → acryl_datahub-1.0.0.1rc3.dist-info/licenses}/LICENSE +0 -0
  78. {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
- if test_response.status_code == 200:
301
- pass
302
- # TODO(Gabe): how should we message about this error?
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