acryl-datahub 1.0.0.4rc1__py3-none-any.whl → 1.0.0.4rc3__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.

@@ -1,7 +1,7 @@
1
- acryl_datahub-1.0.0.4rc1.dist-info/licenses/LICENSE,sha256=9xNHpsD0uYF5ONzXsKDCuHHB-xbiCrSbueWXqrTNsxk,11365
1
+ acryl_datahub-1.0.0.4rc3.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=Hx9s8jzIPgKndn3fnUzyUS5vdaX9yG3jz9VD_X7ghL8,323
4
+ datahub/_version.py,sha256=s9GagN9LnstD0j2tgPma0WgwFBeEF2rYkuJB2EEtcJY,323
5
5
  datahub/entrypoints.py,sha256=AQN5MzCe6q3LKI4SS6WmwN56kgjF6AC1ld7yELWVP2w,8953
6
6
  datahub/errors.py,sha256=p5rFAdAGVCk4Lqolol1YvthceadUSwpaCxLXRcyCCFQ,676
7
7
  datahub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -172,7 +172,7 @@ datahub/ingestion/glossary/classifier_registry.py,sha256=yFOYLQhDgCLqXYMG3L1BquX
172
172
  datahub/ingestion/glossary/datahub_classifier.py,sha256=O7wm6gQT1Jf2QSKdWjJQbS5oSzJwplXzfza26Gdq5Mg,7555
173
173
  datahub/ingestion/graph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
174
174
  datahub/ingestion/graph/client.py,sha256=E8FeXPpFixyLz-a5DP9noJF3OPZYhL5dJwYcB7tSO_4,70611
175
- datahub/ingestion/graph/config.py,sha256=sPBwa7_v10B4sR0mW7ssQli3ljb6hdZd2Xeaq4Jhs6Y,1087
175
+ datahub/ingestion/graph/config.py,sha256=hNu2CztDhUeWXoQA34mU-54H3aN4i3vMUfOoWYhihp8,958
176
176
  datahub/ingestion/graph/connections.py,sha256=9462L0ZWGKURyypAln25eMPhK3pcufBar9tNDoqspXs,741
177
177
  datahub/ingestion/graph/entity_versioning.py,sha256=nrcNz0Qm6kpE6oTu_mrYUQDx14KPspBTc6R9SyFUY6c,6901
178
178
  datahub/ingestion/graph/filters.py,sha256=GlDPFiKOOfQAzlmdDG4Gye4RV2WRgAtMbvj82ST7cNE,8652
@@ -456,7 +456,7 @@ datahub/ingestion/source/snowflake/snowflake_assertion.py,sha256=_l3k4aI9wvioE81
456
456
  datahub/ingestion/source/snowflake/snowflake_config.py,sha256=DqadsSgxjnSY8aY7hcY7721iDPlezYAFDDawK_J0BGE,20416
457
457
  datahub/ingestion/source/snowflake/snowflake_connection.py,sha256=3-nP3HHCblUnUHYo_fvFp5VOAteCtR4GNjaUEvyNTNQ,18175
458
458
  datahub/ingestion/source/snowflake/snowflake_data_reader.py,sha256=ffR5E2uhD71FUMXd3XOg2rHwrp1rbbGEFTAbqKcmI2s,2195
459
- datahub/ingestion/source/snowflake/snowflake_lineage_v2.py,sha256=FBmiONx4EGHWV8RNJT6zHZyntKinPFFyd2oKbTUIbhE,21319
459
+ datahub/ingestion/source/snowflake/snowflake_lineage_v2.py,sha256=eWUlWMc5X2X_Y1I2peworFWLLsXQjryEHxPDuSqrowg,21683
460
460
  datahub/ingestion/source/snowflake/snowflake_profiler.py,sha256=PmQi-qDlRhdJ-PsJ7x-EScIiswWRAxDDOKHydvN3mTY,7404
461
461
  datahub/ingestion/source/snowflake/snowflake_queries.py,sha256=PY4Wy6i89nqRl92ARwXNqWwm-ifagkKbKKtxYWeswkk,29209
462
462
  datahub/ingestion/source/snowflake/snowflake_query.py,sha256=OJDF4x5OCa0PTTdkVdO5_Wzox4039Vhf7zwDoHHW-W4,38410
@@ -501,7 +501,7 @@ datahub/ingestion/source/sql/mssql/job_models.py,sha256=nAo3rciu-w2-dXCz6_ekDEbG
501
501
  datahub/ingestion/source/sql/mssql/source.py,sha256=qaHOtZzCu_pWM8b5B9o8U5ELM01YJy1QRSkaYA1EDv8,32806
502
502
  datahub/ingestion/source/sql/stored_procedures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
503
503
  datahub/ingestion/source/sql/stored_procedures/base.py,sha256=n0l5OaTuW-m3TRvkxs3TqvgMeWF6BagzW3tjyWUcC1A,8631
504
- datahub/ingestion/source/sql/stored_procedures/lineage.py,sha256=9kBoq4JLa4-I3TMAYwChXp76Kag8YBUEIAkaQMplIkY,1844
504
+ datahub/ingestion/source/sql/stored_procedures/lineage.py,sha256=fryLhuAlsjr9SHIjHJ-PmtCMx89bjzWVnJZ3f1bwQVU,1905
505
505
  datahub/ingestion/source/state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
506
506
  datahub/ingestion/source/state/checkpoint.py,sha256=-fTUZKkY4nHTFqSWZ0jJkkdIu_tWlOjRNhm4FTr4ul4,8860
507
507
  datahub/ingestion/source/state/entity_removal_state.py,sha256=zvIsmYg7oiIu2FhecU0VfLBNToUqvKoKyDeiFfkOcyc,6611
@@ -518,7 +518,7 @@ datahub/ingestion/source/state_provider/datahub_ingestion_checkpointing_provider
518
518
  datahub/ingestion/source/state_provider/file_ingestion_checkpointing_provider.py,sha256=DziD57PbHn2Tcy51tYXCG-GQgyTGMUxnkuzVS_xihFY,4079
519
519
  datahub/ingestion/source/state_provider/state_provider_registry.py,sha256=SVq4mIyGNmLXE9OZx1taOiNPqDoQp03-Ot9rYnB5F3k,401
520
520
  datahub/ingestion/source/tableau/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
521
- datahub/ingestion/source/tableau/tableau.py,sha256=WLOcP9VJgJPlCTLHuUWlglrHueoXvGCzXvctasJiIHE,155034
521
+ datahub/ingestion/source/tableau/tableau.py,sha256=mC5me6fYACnUmLkERlYoce3hgi_AtgKynZlnqsW3Jq0,155093
522
522
  datahub/ingestion/source/tableau/tableau_common.py,sha256=MIkHKZg_v2IVCRk-YdPlLZl3m0LcWZm5Indwb3IV2ZQ,26931
523
523
  datahub/ingestion/source/tableau/tableau_constant.py,sha256=ZcAeHsQUXVVL26ORly0ByZk_GJAFbxaKuJAlX_sYMac,2686
524
524
  datahub/ingestion/source/tableau/tableau_server_wrapper.py,sha256=nSyx9RzC6TCQDm-cTVJ657qT8iDwzk_8JMKpohhmOc4,1046
@@ -1053,8 +1053,8 @@ datahub_provider/operators/datahub_assertion_operator.py,sha256=uvTQ-jk2F0sbqqxp
1053
1053
  datahub_provider/operators/datahub_assertion_sensor.py,sha256=lCBj_3x1cf5GMNpHdfkpHuyHfVxsm6ff5x2Z5iizcAo,140
1054
1054
  datahub_provider/operators/datahub_operation_operator.py,sha256=aevDp2FzX7FxGlXrR0khoHNbxbhKR2qPEX5e8O2Jyzw,174
1055
1055
  datahub_provider/operators/datahub_operation_sensor.py,sha256=8fcdVBCEPgqy1etTXgLoiHoJrRt_nzFZQMdSzHqSG7M,168
1056
- acryl_datahub-1.0.0.4rc1.dist-info/METADATA,sha256=sWZqRH1by1VIKGXk4AkoEX2Rrc54W2w6KVcVP5LV2Ck,179695
1057
- acryl_datahub-1.0.0.4rc1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
1058
- acryl_datahub-1.0.0.4rc1.dist-info/entry_points.txt,sha256=o3mDeJXSKhsy7XLkuogihraiabBdLn9HaizYXPrxmk0,9710
1059
- acryl_datahub-1.0.0.4rc1.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
1060
- acryl_datahub-1.0.0.4rc1.dist-info/RECORD,,
1056
+ acryl_datahub-1.0.0.4rc3.dist-info/METADATA,sha256=QpiKmTUaWMGnd69dnDEHug3N-2SHZdTa1LzKxcIDnf4,179949
1057
+ acryl_datahub-1.0.0.4rc3.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
1058
+ acryl_datahub-1.0.0.4rc3.dist-info/entry_points.txt,sha256=o3mDeJXSKhsy7XLkuogihraiabBdLn9HaizYXPrxmk0,9710
1059
+ acryl_datahub-1.0.0.4rc3.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
1060
+ acryl_datahub-1.0.0.4rc3.dist-info/RECORD,,
datahub/_version.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # Published at https://pypi.org/project/acryl-datahub/.
2
2
  __package_name__ = "acryl-datahub"
3
- __version__ = "1.0.0.4rc1"
3
+ __version__ = "1.0.0.4rc3"
4
4
 
5
5
 
6
6
  def is_dev_mode() -> bool:
@@ -17,8 +17,6 @@ DATAHUB_COMPONENT_ENV: str = os.getenv("DATAHUB_COMPONENT", "datahub").lower()
17
17
  class DatahubClientConfig(ConfigModel):
18
18
  """Configuration class for holding connectivity to datahub gms"""
19
19
 
20
- # TODO: Having a default for the server doesn't make a ton of sense. This should be handled
21
- # by callers / the CLI, but the actual client should not have any magic.
22
20
  server: str
23
21
  token: Optional[str] = None
24
22
  timeout_sec: Optional[float] = None
@@ -31,3 +29,6 @@ class DatahubClientConfig(ConfigModel):
31
29
  openapi_ingestion: Optional[bool] = None
32
30
  client_mode: Optional[ClientMode] = None
33
31
  datahub_component: Optional[str] = None
32
+
33
+ class Config:
34
+ extra = "ignore"
@@ -360,6 +360,12 @@ class SnowflakeLineageExtractor(SnowflakeCommonMixin, Closeable):
360
360
  self, db_row: dict
361
361
  ) -> Optional[UpstreamLineageEdge]:
362
362
  try:
363
+ _queries = db_row.get("QUERIES")
364
+ if _queries == "[\n {}\n]":
365
+ # We are creating an empty object in the list when there are no queries
366
+ # To avoid that causing a pydantic error we are setting it to an empty list
367
+ # instead of a list with an empty object
368
+ db_row["QUERIES"] = "[]"
363
369
  return UpstreamLineageEdge.parse_obj(db_row)
364
370
  except Exception as e:
365
371
  self.report.num_upstream_lineage_edge_parsing_failed += 1
@@ -24,6 +24,7 @@ def parse_procedure_code(
24
24
  ) -> Optional[DataJobInputOutputClass]:
25
25
  aggregator = SqlParsingAggregator(
26
26
  platform=schema_resolver.platform,
27
+ platform_instance=schema_resolver.platform_instance,
27
28
  env=schema_resolver.env,
28
29
  schema_resolver=schema_resolver,
29
30
  generate_lineage=True,
@@ -1394,7 +1394,9 @@ class TableauSiteSource:
1394
1394
  `fetch_size:` The number of records to retrieve from Tableau
1395
1395
  Server in a single API call, starting from the current cursor position on Tableau Server.
1396
1396
  """
1397
- retries_remaining = retries_remaining or self.config.max_retries
1397
+ retries_remaining = (
1398
+ self.config.max_retries if retries_remaining is None else retries_remaining
1399
+ )
1398
1400
 
1399
1401
  logger.debug(
1400
1402
  f"Query {connection_type} to get {fetch_size} objects with cursor {current_cursor}"
@@ -1565,7 +1567,7 @@ class TableauSiteSource:
1565
1567
  fetch_size=fetch_size,
1566
1568
  current_cursor=current_cursor,
1567
1569
  retry_on_auth_error=True,
1568
- retries_remaining=retries_remaining,
1570
+ retries_remaining=retries_remaining - 1,
1569
1571
  )
1570
1572
  raise RuntimeError(f"Query {connection_type} error: {errors}")
1571
1573