sws-spark-dissemination-helper 0.0.133__tar.gz → 0.0.136__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.133 → sws_spark_dissemination_helper-0.0.136}/PKG-INFO +1 -1
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/pyproject.toml +1 -1
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py +11 -6
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/.gitignore +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/LICENSE +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/README.md +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/old_requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/SWSDatatablesExportHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/SWSPostgresSparkReader.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/constants.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/src/sws_spark_dissemination_helper/utils.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/tests/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/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.136
|
|
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>
|
|
@@ -240,21 +240,26 @@ class SWSEasyIcebergSparkHelper:
|
|
|
240
240
|
u.email,
|
|
241
241
|
o.created_on,
|
|
242
242
|
o.replaced_on,
|
|
243
|
-
o.version
|
|
244
|
-
o.flag_obs_status,
|
|
245
|
-
o.flag_method"""
|
|
243
|
+
o.version"""
|
|
246
244
|
|
|
247
245
|
from_statement = f"""
|
|
248
246
|
from {self.dataset_tables.OBSERVATION.iceberg_id} o
|
|
249
247
|
join {self.dataset_tables.USER.iceberg_id} u ON u.id = o.created_by
|
|
250
248
|
left join {self.dataset_tables.OBSERVATION_COORDINATE.iceberg_id} as oc on oc.id = o.observation_coordinates"""
|
|
251
249
|
|
|
250
|
+
logging.info("self.flag_col_to_id_mapping")
|
|
251
|
+
logging.info(self.flag_col_to_id_mapping)
|
|
252
|
+
for flag_col in self.flag_columns:
|
|
253
|
+
select_statement += (
|
|
254
|
+
f",\no.{self.flag_col_to_id_mapping[flag_col]} as {flag_col}"
|
|
255
|
+
)
|
|
256
|
+
|
|
252
257
|
id_to_dim_col_mapping = {v: k for k, v in self.dim_col_to_id_mapping.items()}
|
|
253
|
-
for i, (
|
|
258
|
+
for i, (dim_col, cl) in enumerate(
|
|
254
259
|
zip(self.dim_columns_w_time, self.dataset_tables.CODELISTS)
|
|
255
260
|
):
|
|
256
|
-
select_statement += f",\nd{i}.code as {
|
|
257
|
-
from_statement += f"\nleft join {cl.iceberg_id} d{i} on d{i}.id = oc.{id_to_dim_col_mapping[
|
|
261
|
+
select_statement += f",\nd{i}.code as {dim_col}"
|
|
262
|
+
from_statement += f"\nleft join {cl.iceberg_id} d{i} on d{i}.id = oc.{id_to_dim_col_mapping[dim_col]}"
|
|
258
263
|
|
|
259
264
|
final_query = select_statement + from_statement
|
|
260
265
|
if not self.keep_history:
|
{sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/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.133 → sws_spark_dissemination_helper-0.0.136}/tests/__init__.py
RENAMED
|
File without changes
|
{sws_spark_dissemination_helper-0.0.133 → sws_spark_dissemination_helper-0.0.136}/tests/test.py
RENAMED
|
File without changes
|