sws-spark-dissemination-helper 0.0.168__tar.gz → 0.0.169__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.168 → sws_spark_dissemination_helper-0.0.169}/PKG-INFO +1 -1
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/pyproject.toml +1 -1
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/constants.py +16 -16
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/.gitignore +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/LICENSE +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/README.md +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/SWSDatatablesExportHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/SWSPostgresSparkReader.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/src/sws_spark_dissemination_helper/utils.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/tests/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/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.169
|
|
4
4
|
Summary: A Python helper package providing streamlined Spark functions for efficient data dissemination processes
|
|
5
5
|
Project-URL: Repository, https://github.com/un-fao/fao-sws-it-python-spark-dissemination-helper
|
|
6
6
|
Author-email: Daniele Mansillo <danielemansillo@gmail.com>
|
|
@@ -254,37 +254,37 @@ class IcebergTables:
|
|
|
254
254
|
self.__tag_name = tag_name
|
|
255
255
|
|
|
256
256
|
# TODO Fix later with a more appropriate DATABASE
|
|
257
|
-
self.DENORMALIZED_OBSERVATION = self.
|
|
258
|
-
self.DENORMALIZED_METADATA = self.
|
|
259
|
-
self.GROUPED_METADATA = self.
|
|
260
|
-
self.TABLE = self.
|
|
261
|
-
self.TABLE_FILTERED = self.
|
|
262
|
-
self.BRONZE = self.
|
|
263
|
-
self.BRONZE_DISS_TAG = self.
|
|
264
|
-
self.SILVER = self.
|
|
257
|
+
self.DENORMALIZED_OBSERVATION = self.create_iceberg_table("BRONZE", suffix="denormalized_observation")
|
|
258
|
+
self.DENORMALIZED_METADATA = self.create_iceberg_table("BRONZE", suffix="denormalized_metadata")
|
|
259
|
+
self.GROUPED_METADATA = self.create_iceberg_table("BRONZE", suffix="grouped_metadata")
|
|
260
|
+
self.TABLE = self.create_iceberg_table("BRONZE")
|
|
261
|
+
self.TABLE_FILTERED = self.create_iceberg_table("BRONZE", suffix="filtered")
|
|
262
|
+
self.BRONZE = self.create_iceberg_table("BRONZE")
|
|
263
|
+
self.BRONZE_DISS_TAG = self.create_iceberg_table("BRONZE", suffix="diss_tag")
|
|
264
|
+
self.SILVER = self.create_iceberg_table("SILVER", prefix=domain)
|
|
265
265
|
|
|
266
266
|
# GOLD tables with specific suffixes
|
|
267
|
-
self.GOLD_SWS = self.
|
|
268
|
-
self.GOLD_SDMX = self.
|
|
267
|
+
self.GOLD_SWS = self.create_iceberg_table("GOLD", prefix=domain, suffix="sws")
|
|
268
|
+
self.GOLD_SDMX = self.create_iceberg_table(
|
|
269
269
|
"GOLD", prefix=domain, suffix="sdmx_disseminated"
|
|
270
270
|
)
|
|
271
|
-
self.GOLD_SWS_VALIDATED = self.
|
|
271
|
+
self.GOLD_SWS_VALIDATED = self.create_iceberg_table(
|
|
272
272
|
"GOLD", prefix=domain, suffix="sws_validated"
|
|
273
273
|
)
|
|
274
|
-
self.GOLD_SWS_DISSEMINATED = self.
|
|
274
|
+
self.GOLD_SWS_DISSEMINATED = self.create_iceberg_table(
|
|
275
275
|
"GOLD", prefix=domain, suffix="sws_disseminated"
|
|
276
276
|
)
|
|
277
|
-
self.GOLD_PRE_SDMX = self.
|
|
277
|
+
self.GOLD_PRE_SDMX = self.create_iceberg_table(
|
|
278
278
|
"GOLD", prefix=domain, suffix="pre_sdmx"
|
|
279
279
|
)
|
|
280
|
-
self.GOLD_FAOSTAT = self.
|
|
280
|
+
self.GOLD_FAOSTAT = self.create_iceberg_table(
|
|
281
281
|
"GOLD", prefix=domain, suffix="faostat"
|
|
282
282
|
)
|
|
283
|
-
self.GOLD_FAOSTAT_UNFILTERED = self.
|
|
283
|
+
self.GOLD_FAOSTAT_UNFILTERED = self.create_iceberg_table(
|
|
284
284
|
"GOLD", prefix=domain, suffix="faostat_unfiltered"
|
|
285
285
|
)
|
|
286
286
|
|
|
287
|
-
def
|
|
287
|
+
def create_iceberg_table(
|
|
288
288
|
self, level: str, prefix: str = "", suffix: str = ""
|
|
289
289
|
) -> IcebergTable:
|
|
290
290
|
database = getattr(IcebergDatabases, f"{level}_DATABASE")
|
{sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/.gitignore
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
|
|
File without changes
|
|
File without changes
|
{sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/tests/__init__.py
RENAMED
|
File without changes
|
{sws_spark_dissemination_helper-0.0.168 → sws_spark_dissemination_helper-0.0.169}/tests/test.py
RENAMED
|
File without changes
|