sws-spark-dissemination-helper 0.0.130__py3-none-any.whl → 0.0.131__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.
- sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py +3 -5
- {sws_spark_dissemination_helper-0.0.130.dist-info → sws_spark_dissemination_helper-0.0.131.dist-info}/METADATA +1 -1
- {sws_spark_dissemination_helper-0.0.130.dist-info → sws_spark_dissemination_helper-0.0.131.dist-info}/RECORD +5 -5
- {sws_spark_dissemination_helper-0.0.130.dist-info → sws_spark_dissemination_helper-0.0.131.dist-info}/WHEEL +0 -0
- {sws_spark_dissemination_helper-0.0.130.dist-info → sws_spark_dissemination_helper-0.0.131.dist-info}/licenses/LICENSE +0 -0
|
@@ -242,19 +242,17 @@ class SWSEasyIcebergSparkHelper:
|
|
|
242
242
|
o.replaced_on,
|
|
243
243
|
o.version,
|
|
244
244
|
o.flag_obs_status,
|
|
245
|
-
o.flag_method
|
|
246
|
-
"""
|
|
245
|
+
o.flag_method"""
|
|
247
246
|
|
|
248
247
|
from_statement = f"""
|
|
249
248
|
from {self.dataset_tables.OBSERVATION.iceberg_id} o
|
|
250
249
|
join {self.dataset_tables.USER.iceberg_id} u ON u.id = o.created_by
|
|
251
|
-
left join {self.dataset_tables.OBSERVATION_COORDINATE.iceberg_id} as oc on oc.id = o.observation_coordinates
|
|
252
|
-
"""
|
|
250
|
+
left join {self.dataset_tables.OBSERVATION_COORDINATE.iceberg_id} as oc on oc.id = o.observation_coordinates"""
|
|
253
251
|
|
|
254
252
|
for i, (dim, cl) in enumerate(
|
|
255
253
|
zip(self.dim_columns_w_time, self.dataset_tables.CODELISTS)
|
|
256
254
|
):
|
|
257
|
-
select_statement += f
|
|
255
|
+
select_statement += f"",\nd{i}.code as {dim}"
|
|
258
256
|
from_statement += f"\nleft join {cl.iceberg_id} d{i} on d{i}.id = oc.{dim}"
|
|
259
257
|
|
|
260
258
|
final_query = select_statement + from_statement
|
|
@@ -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.131
|
|
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,13 +1,13 @@
|
|
|
1
1
|
sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py,sha256=rHTPkMU8_DqP-MrHz7CzeVmrfyU2s7eJfk9gIDyTwio,20076
|
|
2
2
|
sws_spark_dissemination_helper/SWSDatatablesExportHelper.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py,sha256=
|
|
3
|
+
sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py,sha256=exYdknT646-lZweRUF2d5tHnYY2UkaDuo1fZ5AsPmjg,21254
|
|
4
4
|
sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py,sha256=KZy6v4V3ugzKq_0L8JLmTPClN0hx-9uWpAwNFcs37Og,19339
|
|
5
5
|
sws_spark_dissemination_helper/SWSPostgresSparkReader.py,sha256=cRLa6KYv7tbGB2_Rpcyvb3ksGu0lX9gpLhnF9nxlxEs,17494
|
|
6
6
|
sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py,sha256=qioLv3SlJEfk0LzTiwfXRtZXVImPOJUeh9k1XwHC-pA,26225
|
|
7
7
|
sws_spark_dissemination_helper/__init__.py,sha256=42TPbk7KxAud_qY3Sr_F4F7VjyofUlxEJkUXAFQsjRo,327
|
|
8
8
|
sws_spark_dissemination_helper/constants.py,sha256=WARxtI7Sq2P_Dkdu_TVtU0Y-5FsmYBtpQtOaSVv1ejA,11748
|
|
9
9
|
sws_spark_dissemination_helper/utils.py,sha256=G7lQqNRrvqZpgm9WmddD7fWsI8IVn09x1p3cV3458EA,21963
|
|
10
|
-
sws_spark_dissemination_helper-0.0.
|
|
11
|
-
sws_spark_dissemination_helper-0.0.
|
|
12
|
-
sws_spark_dissemination_helper-0.0.
|
|
13
|
-
sws_spark_dissemination_helper-0.0.
|
|
10
|
+
sws_spark_dissemination_helper-0.0.131.dist-info/METADATA,sha256=xjzmGDHh8DEeUXPyhGTuB6wU3Etv-7leUSxSYSoimLA,2824
|
|
11
|
+
sws_spark_dissemination_helper-0.0.131.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
sws_spark_dissemination_helper-0.0.131.dist-info/licenses/LICENSE,sha256=zFzeb_j_6pXEHwH8Z0OpIkKFJk7vmhZjdem-K0d4zU4,1073
|
|
13
|
+
sws_spark_dissemination_helper-0.0.131.dist-info/RECORD,,
|
|
File without changes
|