gss-bi-udfs 0.1.2__py3-none-any.whl → 0.1.3__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.
- gss_bi_udfs/io.py +3 -2
- {gss_bi_udfs-0.1.2.dist-info → gss_bi_udfs-0.1.3.dist-info}/METADATA +1 -1
- {gss_bi_udfs-0.1.2.dist-info → gss_bi_udfs-0.1.3.dist-info}/RECORD +5 -5
- {gss_bi_udfs-0.1.2.dist-info → gss_bi_udfs-0.1.3.dist-info}/WHEEL +0 -0
- {gss_bi_udfs-0.1.2.dist-info → gss_bi_udfs-0.1.3.dist-info}/top_level.txt +0 -0
gss_bi_udfs/io.py
CHANGED
|
@@ -374,12 +374,13 @@ def load_and_materialize_views(action, **kwargs):
|
|
|
374
374
|
return results
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
def save_table_to_delta(df, catalog, schema, table_name):
|
|
377
|
+
def save_table_to_delta(spark, df, catalog, schema, table_name):
|
|
378
378
|
"""
|
|
379
379
|
Guarda un DataFrame en formato Delta en la ubicación y tabla especificadas,
|
|
380
380
|
sobrescribiendo los datos existentes y el esquema si es necesario.
|
|
381
381
|
|
|
382
382
|
Parámetros:
|
|
383
|
+
spark (SparkSession): Sesión activa de Spark.
|
|
383
384
|
df (DataFrame): DataFrame de Spark que se desea guardar.
|
|
384
385
|
db_name (str): Nombre del catálogo o base de datos destino.
|
|
385
386
|
schema (str): Nombre del esquema, capa o entorno destino (ejemplo: 'silver', 'gold').
|
|
@@ -407,7 +408,7 @@ def save_table_to_delta(df, catalog, schema, table_name):
|
|
|
407
408
|
- Si ambas opciones se usan al mismo tiempo, solo una tendrá efecto (se aplicará la última indicada).
|
|
408
409
|
|
|
409
410
|
"""
|
|
410
|
-
dim_destino = get_table_info(catalog=catalog, schema=schema, table=table_name)
|
|
411
|
+
dim_destino = get_table_info(spark=spark, catalog=catalog, schema=schema, table=table_name)
|
|
411
412
|
(
|
|
412
413
|
df.write
|
|
413
414
|
.format("delta")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
gss_bi_udfs/__init__.py,sha256=VNj2_l7MHiRGF497XVM4KtU7p6JOX1xddkvFJLG1vUQ,152
|
|
2
|
-
gss_bi_udfs/io.py,sha256=
|
|
2
|
+
gss_bi_udfs/io.py,sha256=yneOHVcHbcSOuAy02jS3_qm7YXGyeDpXFk9e-5VJ36A,17246
|
|
3
3
|
gss_bi_udfs/merges.py,sha256=4YHfw6TWU08ZWEMKBtFlMqj_tzXzjqkuM_CJn0uRNUI,7977
|
|
4
4
|
gss_bi_udfs/transforms.py,sha256=yDg7uvPFSTrGXgy5rOUKDdSrRBBZSubfi9K-6rATCWY,1876
|
|
5
5
|
gss_bi_udfs/utils.py,sha256=ryyqrzhybC6mZFTUWsnnrQXReUcLkVqw6e2gIf4Id_g,5982
|
|
@@ -12,7 +12,7 @@ workspace/main.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
12
12
|
workspace/prueba.py,sha256=n-zGeMhFRrMLp9cx-vvJYTSFMZHCYm_R-xmGiQvj1Fk,223
|
|
13
13
|
workspace/prueba_calculadora.py,sha256=4pu4Wg-h_aALbqDsfSeJlPbyx9FpODIbHGNAse5Mz5M,512
|
|
14
14
|
workspace/tests/test_prueba_calculadora.py,sha256=9cHXunht_EVwBgBELv5YlazkJMWSi97A5VnB9Mvs-kU,257
|
|
15
|
-
gss_bi_udfs-0.1.
|
|
16
|
-
gss_bi_udfs-0.1.
|
|
17
|
-
gss_bi_udfs-0.1.
|
|
18
|
-
gss_bi_udfs-0.1.
|
|
15
|
+
gss_bi_udfs-0.1.3.dist-info/METADATA,sha256=u4tbdf_peTRGGTMzIMlsle_BRrQ56uTPEHs63GmfFm8,393
|
|
16
|
+
gss_bi_udfs-0.1.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
17
|
+
gss_bi_udfs-0.1.3.dist-info/top_level.txt,sha256=NzlGPsUajFQDfmDbDhTCgu4LBvrm0d1shuPSJIBpLfw,36
|
|
18
|
+
gss_bi_udfs-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|