sws-spark-dissemination-helper 0.0.115__tar.gz → 0.0.117__tar.gz
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.
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/PKG-INFO +1 -1
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/pyproject.toml +1 -1
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py +10 -7
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/.gitignore +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/LICENSE +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/README.md +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/old_requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/SWSPostgresSparkReader.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/constants.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/src/sws_spark_dissemination_helper/utils.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/tests/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/tests/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sws-spark-dissemination-helper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.117
|
|
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>
|
|
@@ -176,6 +176,9 @@ class SWSSilverIcebergSparkHelper:
|
|
|
176
176
|
|
|
177
177
|
original_col_order = df.columns
|
|
178
178
|
cols_to_select = df.columns
|
|
179
|
+
logging.info("df.columns")
|
|
180
|
+
logging.info(f"{col_name}_start_date")
|
|
181
|
+
logging.info(f"{col_name}_end_date")
|
|
179
182
|
cols_to_select.remove("note")
|
|
180
183
|
cols_to_select.remove(f"{col_name}_start_date")
|
|
181
184
|
cols_to_select.remove(f"{col_name}_end_date")
|
|
@@ -637,6 +640,13 @@ class SWSSilverIcebergSparkHelper:
|
|
|
637
640
|
table=self.iceberg_tables.SILVER.table,
|
|
638
641
|
path=self.iceberg_tables.SILVER.path,
|
|
639
642
|
structure={"columns": df.schema.jsonValue()["fields"]},
|
|
643
|
+
pinned_columns=[
|
|
644
|
+
*self.dim_columns_w_time,
|
|
645
|
+
"value",
|
|
646
|
+
*self.flag_columns,
|
|
647
|
+
"diss_flag",
|
|
648
|
+
"note",
|
|
649
|
+
],
|
|
640
650
|
)
|
|
641
651
|
tag = upsert_disseminated_table(
|
|
642
652
|
sws_tags=tags,
|
|
@@ -656,13 +666,6 @@ class SWSSilverIcebergSparkHelper:
|
|
|
656
666
|
type=TableType.CSV,
|
|
657
667
|
path=self.iceberg_tables.SILVER.csv_path,
|
|
658
668
|
structure={"columns": df.schema.jsonValue()["fields"]},
|
|
659
|
-
pinned_columns=[
|
|
660
|
-
*self.dim_columns_w_time,
|
|
661
|
-
"value",
|
|
662
|
-
*self.flag_columns,
|
|
663
|
-
"diss_flag",
|
|
664
|
-
"note",
|
|
665
|
-
],
|
|
666
669
|
)
|
|
667
670
|
tag = upsert_disseminated_table(
|
|
668
671
|
sws_tags=tags,
|
{sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/requirements.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/tests/__init__.py
RENAMED
|
File without changes
|
{sws_spark_dissemination_helper-0.0.115 → sws_spark_dissemination_helper-0.0.117}/tests/test.py
RENAMED
|
File without changes
|