sws-spark-dissemination-helper 0.0.174__py3-none-any.whl → 0.0.176__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/SWSGoldIcebergSparkHelper.py +32 -1
- {sws_spark_dissemination_helper-0.0.174.dist-info → sws_spark_dissemination_helper-0.0.176.dist-info}/METADATA +1 -1
- {sws_spark_dissemination_helper-0.0.174.dist-info → sws_spark_dissemination_helper-0.0.176.dist-info}/RECORD +5 -5
- {sws_spark_dissemination_helper-0.0.174.dist-info → sws_spark_dissemination_helper-0.0.176.dist-info}/WHEEL +0 -0
- {sws_spark_dissemination_helper-0.0.174.dist-info → sws_spark_dissemination_helper-0.0.176.dist-info}/licenses/LICENSE +0 -0
|
@@ -87,7 +87,12 @@ class SWSGoldIcebergSparkHelper:
|
|
|
87
87
|
return df.filter(col("diss_flag"))
|
|
88
88
|
|
|
89
89
|
def keep_dim_val_attr_columns(self, df: DataFrame):
|
|
90
|
-
|
|
90
|
+
cols_to_keep_sws = self.cols_to_keep_sws
|
|
91
|
+
if "note" in df.columns:
|
|
92
|
+
cols_to_keep_sws = cols_to_keep_sws + ["note"]
|
|
93
|
+
if "unit_of_measure_symbol" in df.columns:
|
|
94
|
+
cols_to_keep_sws = cols_to_keep_sws + ["unit_of_measure_symbol"]
|
|
95
|
+
return df.select(*cols_to_keep_sws)
|
|
91
96
|
|
|
92
97
|
def read_bronze_data(self) -> DataFrame:
|
|
93
98
|
return self.spark.read.option("tag", self.tag_name).table(
|
|
@@ -667,3 +672,29 @@ class SWSGoldIcebergSparkHelper:
|
|
|
667
672
|
logging.debug(f"Tag with Added csv Table: {tag}")
|
|
668
673
|
|
|
669
674
|
return df
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
1
|
|
678
|
+
frozenset({"9", "1", "0", "4", "7", "3", "2", "6", "8", "5"})
|
|
679
|
+
1
|
|
680
|
+
1
|
|
681
|
+
2
|
|
682
|
+
frozenset({"9", "1", "0", "4", "7", "3", "2", "6", "8", "5"})
|
|
683
|
+
2
|
|
684
|
+
1
|
|
685
|
+
1
|
|
686
|
+
frozenset({"9", "1", "0", "4", "7", "3", "2", "6", "8", "5"})
|
|
687
|
+
1
|
|
688
|
+
1
|
|
689
|
+
2
|
|
690
|
+
frozenset({"9", "1", "0", "4", "7", "3", "2", "6", "8", "5"})
|
|
691
|
+
2
|
|
692
|
+
1
|
|
693
|
+
1
|
|
694
|
+
frozenset({"9", "1", "0", "4", "7", "3", "2", "6", "8", "5"})
|
|
695
|
+
1
|
|
696
|
+
1
|
|
697
|
+
1
|
|
698
|
+
frozenset({"9", "1", "0", "4", "7", "3", "2", "6", "8", "5"})
|
|
699
|
+
1
|
|
700
|
+
1
|
|
@@ -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.176
|
|
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>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py,sha256=N0eQ2LXtpPeZQCWYi85sMLmpXRzLA2erECiba8tqOAY,29595
|
|
2
2
|
sws_spark_dissemination_helper/SWSDatatablesExportHelper.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py,sha256=csqKyYglBkJSBvEkEa1_keHarZZAIJHaV0d64gGJy98,26379
|
|
4
|
-
sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py,sha256=
|
|
4
|
+
sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py,sha256=wJgtpD0DqaGNWu_V5lcPIaPRBFimV395gn8Fk7Ul9bY,25723
|
|
5
5
|
sws_spark_dissemination_helper/SWSPostgresSparkReader.py,sha256=KpG8gp8Ai9pHDiKhUOTcXWxxmFGeKEE3XKlI_Y-SveU,18453
|
|
6
6
|
sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py,sha256=EXpqPHbxld8MPShE6Vo8h4y1vpBt_BjMtS4RPJcPeTU,26355
|
|
7
7
|
sws_spark_dissemination_helper/__init__.py,sha256=42TPbk7KxAud_qY3Sr_F4F7VjyofUlxEJkUXAFQsjRo,327
|
|
8
8
|
sws_spark_dissemination_helper/constants.py,sha256=vQmalAqInwPAybgJOfYx99jn47KsKp8jeD8eqmjw-Rs,13471
|
|
9
9
|
sws_spark_dissemination_helper/utils.py,sha256=Ge8zXsUIcvFihALDNLF5kCu_tAdRQUE04xE6Yn9xQF4,22008
|
|
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.176.dist-info/METADATA,sha256=3mtkAYmFx0fjK60OEEAbhBSOH4605meXWJX1cjmvGHo,2822
|
|
11
|
+
sws_spark_dissemination_helper-0.0.176.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
sws_spark_dissemination_helper-0.0.176.dist-info/licenses/LICENSE,sha256=zFzeb_j_6pXEHwH8Z0OpIkKFJk7vmhZjdem-K0d4zU4,1073
|
|
13
|
+
sws_spark_dissemination_helper-0.0.176.dist-info/RECORD,,
|
|
File without changes
|