sws-spark-dissemination-helper 0.0.112__tar.gz → 0.0.114__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.112 → sws_spark_dissemination_helper-0.0.114}/PKG-INFO +2 -2
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/pyproject.toml +2 -2
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/requirements.txt +1 -1
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py +6 -2
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/.gitignore +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/LICENSE +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/README.md +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/old_requirements.txt +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/SWSPostgresSparkReader.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/constants.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/src/sws_spark_dissemination_helper/utils.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/tests/__init__.py +0 -0
- {sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/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.114
|
|
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>
|
|
@@ -49,7 +49,7 @@ Requires-Dist: pytz==2025.1
|
|
|
49
49
|
Requires-Dist: requests==2.32.3
|
|
50
50
|
Requires-Dist: s3transfer==0.11.2
|
|
51
51
|
Requires-Dist: six==1.17.0
|
|
52
|
-
Requires-Dist: sws-api-client
|
|
52
|
+
Requires-Dist: sws-api-client>=1.5.0
|
|
53
53
|
Requires-Dist: typing-extensions==4.12.2
|
|
54
54
|
Requires-Dist: tzdata==2025.1
|
|
55
55
|
Requires-Dist: urllib3==1.26.20
|
{sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sws-spark-dissemination-helper"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.114"
|
|
8
8
|
dependencies = [
|
|
9
9
|
"annotated-types==0.7.0",
|
|
10
10
|
"boto3==1.36.18",
|
|
@@ -25,7 +25,7 @@ dependencies = [
|
|
|
25
25
|
"requests==2.32.3",
|
|
26
26
|
"s3transfer==0.11.2",
|
|
27
27
|
"six==1.17.0",
|
|
28
|
-
"sws_api_client
|
|
28
|
+
"sws_api_client>=1.5.0",
|
|
29
29
|
"typing_extensions==4.12.2",
|
|
30
30
|
"tzdata==2025.1",
|
|
31
31
|
"urllib3==1.26.20"
|
|
@@ -10,7 +10,7 @@ from pyspark.sql.window import Window
|
|
|
10
10
|
from sws_api_client import Tags
|
|
11
11
|
from sws_api_client.tags import BaseDisseminatedTagTable, TableLayer, TableType
|
|
12
12
|
|
|
13
|
-
from .constants import IcebergDatabases, IcebergTables
|
|
13
|
+
from .constants import IcebergDatabases, IcebergTables, DatasetDatatables
|
|
14
14
|
from .SWSPostgresSparkReader import SWSPostgresSparkReader
|
|
15
15
|
from .utils import (
|
|
16
16
|
get_or_create_tag,
|
|
@@ -164,6 +164,9 @@ class SWSSilverIcebergSparkHelper:
|
|
|
164
164
|
logging.info(f"Checking time validity for {col_name} of type {col_type}")
|
|
165
165
|
|
|
166
166
|
if col_type == "area":
|
|
167
|
+
logging.info(
|
|
168
|
+
f'Changing start and end year according to "{DatasetDatatables.MAPPING_CODE_CORRECTION.name}"'
|
|
169
|
+
)
|
|
167
170
|
df_start_year_correction = self.df_mapping_code_correction.filter(
|
|
168
171
|
col("var_type") == lit("start_year")
|
|
169
172
|
)
|
|
@@ -232,7 +235,8 @@ class SWSSilverIcebergSparkHelper:
|
|
|
232
235
|
.withColumn(
|
|
233
236
|
f"new_{col_name}_end_date",
|
|
234
237
|
F.when(
|
|
235
|
-
col("valid_new_end_year"),
|
|
238
|
+
col("valid_new_end_year"),
|
|
239
|
+
F.to_date(F.concat(col("ey.new_code"), lit("-12-31"))),
|
|
236
240
|
).otherwise(col(f"d.{col_name}_end_date")),
|
|
237
241
|
)
|
|
238
242
|
.select(
|
{sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/.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
|
{sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/tests/__init__.py
RENAMED
|
File without changes
|
{sws_spark_dissemination_helper-0.0.112 → sws_spark_dissemination_helper-0.0.114}/tests/test.py
RENAMED
|
File without changes
|