sws-spark-dissemination-helper 0.0.102__py3-none-any.whl → 0.0.104__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.
@@ -387,18 +387,12 @@ class SWSBronzeIcebergSparkHelper:
387
387
 
388
388
  logging.info(f"Bronze table written to {self.iceberg_tables.BRONZE.iceberg_id}")
389
389
 
390
+ self.spark.sql(
391
+ f"ALTER TABLE {self.iceberg_tables.BRONZE.iceberg_id} REFRESH;"
392
+ )
390
393
  self.spark.sql(
391
394
  f"ALTER TABLE {self.iceberg_tables.BRONZE.iceberg_id} CREATE TAG `{self.tag_name}`"
392
395
  )
393
- while (
394
- self.spark.sql(
395
- f"SELECT * FROM {self.iceberg_tables.BRONZE.iceberg_id}.refs"
396
- )
397
- .filter((col("type") == lit("TAG")) & (col("name") == lit(self.tag_name)))
398
- .count()
399
- ) == 0:
400
- logging.info(f"Waiting for the tag {self.tag_name} to be created")
401
- time.sleep(2)
402
396
 
403
397
  logging.info(f"bronze tag '{self.tag_name}' created")
404
398
 
@@ -476,6 +470,9 @@ class SWSBronzeIcebergSparkHelper:
476
470
  f"Bronze disseminated tag table written to {self.iceberg_tables.BRONZE_DISS_TAG.iceberg_id}"
477
471
  )
478
472
 
473
+ self.spark.sql(
474
+ f"ALTER TABLE {self.iceberg_tables.BRONZE_DISS_TAG.iceberg_id} REFRESH;"
475
+ )
479
476
  self.spark.sql(
480
477
  f"ALTER TABLE {self.iceberg_tables.BRONZE_DISS_TAG.iceberg_id} CREATE TAG `{self.tag_name}`"
481
478
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sws-spark-dissemination-helper
3
- Version: 0.0.102
3
+ Version: 0.0.104
4
4
  Summary: A Python helper package providing streamlined Spark functions for efficient data dissemination processes
5
5
  Project-URL: Repository, https://bitbucket.org/cioapps/sws-it-python-spark-dissemination-helper
6
6
  Author-email: Daniele Mansillo <danielemansillo@gmail.com>
@@ -1,11 +1,11 @@
1
- sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py,sha256=k79yVW14wnNTX1nLEZj4bqsmv9L43Hd5ILuAxFWTX2s,20146
1
+ sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py,sha256=yNBJkQv6Gcz9nE6df96hqJ9JBrgv4AsDq-oZ1ILcGl4,20010
2
2
  sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py,sha256=ZC7hxkppo6qmfCc2z5vm2Y2iH1901F-rx9Er9cxuzP4,16037
3
3
  sws_spark_dissemination_helper/SWSPostgresSparkReader.py,sha256=ja7AbOfbmC_EXHCJk7UMDzzbA-LRxzPkaaUmuvcihJ8,17449
4
4
  sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py,sha256=08xA7h4oVicKOnjEoMrLXpuk9mZ2GTiTPx3C7rCI7pg,22224
5
5
  sws_spark_dissemination_helper/__init__.py,sha256=Efjoe9V4vGXWVp-DY5P6NbRwIUr_zkZJkDmMi-lf5Bc,262
6
6
  sws_spark_dissemination_helper/constants.py,sha256=yG_pUi2PVeFKz6pogAU2AGQ-wV4FHWRHOW77wE_XGL0,11436
7
7
  sws_spark_dissemination_helper/utils.py,sha256=6SzrXX0xhvynRyv-vRFDbc6V4UNe_RzKKETZAtefnhg,21341
8
- sws_spark_dissemination_helper-0.0.102.dist-info/METADATA,sha256=7gTZBaFngb28xVXjw33EBD1_XxUnbCJkSoV3dkpg9eE,2824
9
- sws_spark_dissemination_helper-0.0.102.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- sws_spark_dissemination_helper-0.0.102.dist-info/licenses/LICENSE,sha256=zFzeb_j_6pXEHwH8Z0OpIkKFJk7vmhZjdem-K0d4zU4,1073
11
- sws_spark_dissemination_helper-0.0.102.dist-info/RECORD,,
8
+ sws_spark_dissemination_helper-0.0.104.dist-info/METADATA,sha256=HuI-vbl8TUBGPWYEOw__1NsZ6Tl222gTAnACXvHWrVE,2824
9
+ sws_spark_dissemination_helper-0.0.104.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ sws_spark_dissemination_helper-0.0.104.dist-info/licenses/LICENSE,sha256=zFzeb_j_6pXEHwH8Z0OpIkKFJk7vmhZjdem-K0d4zU4,1073
11
+ sws_spark_dissemination_helper-0.0.104.dist-info/RECORD,,