sws-spark-dissemination-helper 0.0.137__tar.gz → 0.0.139__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.137 → sws_spark_dissemination_helper-0.0.139}/PKG-INFO +1 -1
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/pyproject.toml +1 -1
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py +3 -5
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/.gitignore +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/LICENSE +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/README.md +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/old_requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/SWSDatatablesExportHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/SWSPostgresSparkReader.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/constants.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/src/sws_spark_dissemination_helper/utils.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/tests/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/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.139
|
|
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>
|
|
@@ -247,11 +247,9 @@ class SWSEasyIcebergSparkHelper:
|
|
|
247
247
|
join {self.dataset_tables.USER.iceberg_id} u ON u.id = o.created_by
|
|
248
248
|
left join {self.dataset_tables.OBSERVATION_COORDINATE.iceberg_id} as oc on oc.id = o.observation_coordinates"""
|
|
249
249
|
|
|
250
|
+
id_to_flag_col_mapping = {v: k for k, v in self.flag_col_to_id_mapping.items()}
|
|
250
251
|
for flag_col in self.flag_columns:
|
|
251
|
-
select_statement +=
|
|
252
|
-
# f",\no.{self.flag_col_to_id_mapping[flag_col]} as {flag_col}"
|
|
253
|
-
f",\no.{flag_col}"
|
|
254
|
-
)
|
|
252
|
+
select_statement += f",\no.{id_to_flag_col_mapping[flag_col]} as {flag_col}"
|
|
255
253
|
|
|
256
254
|
id_to_dim_col_mapping = {v: k for k, v in self.dim_col_to_id_mapping.items()}
|
|
257
255
|
for i, (dim_col, cl) in enumerate(
|
|
@@ -352,7 +350,7 @@ class SWSEasyIcebergSparkHelper:
|
|
|
352
350
|
left join {self.dataset_tables.METADATA.iceberg_id} m on m.id = me.metadata
|
|
353
351
|
left join {self.dataset_tables.METADATA_ELEMENT_TYPE.iceberg_id} met on met.id = me.metadata_element_type
|
|
354
352
|
left join {self.dataset_tables.METADATA_TYPE.iceberg_id} mt on mt.id = m.metadata_type
|
|
355
|
-
left join {self.dataset_tables.LANGUAGE.iceberg_id}
|
|
353
|
+
left join {self.dataset_tables.LANGUAGE.iceberg_id} l on l.id = m.language
|
|
356
354
|
"""
|
|
357
355
|
)
|
|
358
356
|
|
{sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/requirements.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
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.137 → sws_spark_dissemination_helper-0.0.139}/tests/__init__.py
RENAMED
|
File without changes
|
{sws_spark_dissemination_helper-0.0.137 → sws_spark_dissemination_helper-0.0.139}/tests/test.py
RENAMED
|
File without changes
|