tdfs4ds 0.2.4.41__py3-none-any.whl → 0.2.4.42__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.
- tdfs4ds/__init__.py +1 -1
- tdfs4ds/utils/filter_management.py +1 -1
- tdfs4ds/utils/time_management.py +14 -8
- {tdfs4ds-0.2.4.41.dist-info → tdfs4ds-0.2.4.42.dist-info}/METADATA +1 -1
- {tdfs4ds-0.2.4.41.dist-info → tdfs4ds-0.2.4.42.dist-info}/RECORD +7 -7
- {tdfs4ds-0.2.4.41.dist-info → tdfs4ds-0.2.4.42.dist-info}/WHEEL +0 -0
- {tdfs4ds-0.2.4.41.dist-info → tdfs4ds-0.2.4.42.dist-info}/top_level.txt +0 -0
tdfs4ds/__init__.py
CHANGED
|
@@ -20,7 +20,7 @@ def get_hidden_table_name(schema_name, view_name):
|
|
|
20
20
|
try:
|
|
21
21
|
return tdfs4ds.utils.lineage.get_ddl(schema_name=schema_name, view_name=view_name).split('\n')[-2].split('.')[1]
|
|
22
22
|
except Exception as e:
|
|
23
|
-
logger_safe("warning", "Failed to extract hidden table name from DDL; defaulting to suffix method.", e)
|
|
23
|
+
logger_safe("warning", "Failed to extract hidden table name from DDL; defaulting to suffix method.", str(e).split('\n')[0])
|
|
24
24
|
return view_name + "_HIDDEN"
|
|
25
25
|
|
|
26
26
|
|
tdfs4ds/utils/time_management.py
CHANGED
|
@@ -8,16 +8,22 @@ import numpy as np
|
|
|
8
8
|
import pandas as pd
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
def get_hidden_table_name(
|
|
12
|
-
"""
|
|
11
|
+
def get_hidden_table_name(schema_name, view_name):
|
|
12
|
+
"""
|
|
13
|
+
Return the backing 'hidden' table name for a public view/table.
|
|
13
14
|
|
|
14
15
|
Args:
|
|
15
|
-
table_name:
|
|
16
|
+
table_name (str): Public-facing table/view name.
|
|
16
17
|
|
|
17
18
|
Returns:
|
|
18
|
-
The hidden table name (
|
|
19
|
+
str: The corresponding hidden table name (suffix '_HIDDEN').
|
|
19
20
|
"""
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
try:
|
|
23
|
+
return tdfs4ds.utils.lineage.get_ddl(schema_name=schema_name, view_name=view_name).split('\n')[-2].split('.')[1]
|
|
24
|
+
except Exception as e:
|
|
25
|
+
logger_safe("warning", "Failed to extract hidden table name from DDL; defaulting to suffix method.", str(e).split('\n')[0])
|
|
26
|
+
return view_name + "_HIDDEN"
|
|
21
27
|
|
|
22
28
|
|
|
23
29
|
class TimeManager:
|
|
@@ -91,7 +97,7 @@ class TimeManager:
|
|
|
91
97
|
schema_name: Schema that contains/should contain the objects.
|
|
92
98
|
"""
|
|
93
99
|
self.schema_name = schema_name
|
|
94
|
-
self.table_name = get_hidden_table_name(table_name)
|
|
100
|
+
self.table_name = get_hidden_table_name(schema_name=schema_name,view_name=table_name)
|
|
95
101
|
self.view_name = table_name
|
|
96
102
|
self.time_id = 'time_id'
|
|
97
103
|
self.nb_time_steps = None
|
|
@@ -461,7 +467,7 @@ class TimeManager:
|
|
|
461
467
|
|
|
462
468
|
if clone_mode == "hard":
|
|
463
469
|
# Hard clone → create (or reuse) a NEW hidden table in this schema
|
|
464
|
-
self.table_name = get_hidden_table_name(self.view_name)
|
|
470
|
+
self.table_name = get_hidden_table_name(schema_name=self.schema_name, view_name=self.view_name)
|
|
465
471
|
existing_dest = [t.lower() for t in tdml.db_list_tables(schema_name=self.schema_name).TableName.values]
|
|
466
472
|
|
|
467
473
|
if self.table_name.lower() in existing_dest:
|
|
@@ -555,7 +561,7 @@ class TimeManager:
|
|
|
555
561
|
if current_time_id is None:
|
|
556
562
|
current_time_id = 1
|
|
557
563
|
|
|
558
|
-
dest_table = get_hidden_table_name(self.view_name)
|
|
564
|
+
dest_table = get_hidden_table_name(schema_name=self.schema_name, view_name=self.view_name)
|
|
559
565
|
|
|
560
566
|
if not create_copy:
|
|
561
567
|
# Only mark as owned if we already match <schema, view_HIDDEN>
|
|
@@ -2,7 +2,7 @@ tdfs/__init__.py,sha256=7AcO7uB1opRCt7t2JOHworKimfAaDeO3boRW7u9Geo8,23
|
|
|
2
2
|
tdfs/datasets.py,sha256=-b2MPEKGki2V1M8iUcoDR9uc2krIK7u1CK-EhChvihs,985
|
|
3
3
|
tdfs/feature_store.py,sha256=Honu7eOAXxP4Ivz0mRlhuNkfTDzgZl5HB1WlQUwzcZ0,31354
|
|
4
4
|
tdfs/data/curves.csv,sha256=q0Tm-0yu7VMK4lHvHpgi1LMeRq0lO5gJy2Q17brKbEM,112488
|
|
5
|
-
tdfs4ds/__init__.py,sha256=
|
|
5
|
+
tdfs4ds/__init__.py,sha256=MiVBD57b1d6P5ClSQvYlafHGlcvaGA8wMVeC3sTbcbw,61203
|
|
6
6
|
tdfs4ds/datasets.py,sha256=LE4Gn0muwdyrIrCrbkE92cnafUML63z1lj5bFIIVzmc,3524
|
|
7
7
|
tdfs4ds/feature_engineering.py,sha256=oVnZ2V_XNGE12LKC_fNfkrWSQZLgtYRmaf8Dispi6S4,7081
|
|
8
8
|
tdfs4ds/feature_store.py,sha256=y-oItPZw6nBkBcGAceaATZbkLPTsvpk0OnpzTxYofDs,68576
|
|
@@ -26,13 +26,13 @@ tdfs4ds/process_store/process_query_administration.py,sha256=AOufkJ6DFUpBiGm-6Q6
|
|
|
26
26
|
tdfs4ds/process_store/process_registration_management.py,sha256=2fFjt4Pmh3An1BUFvRX3xABSlQrlWiEiPQStH3A9Xpk,36130
|
|
27
27
|
tdfs4ds/process_store/process_store_catalog_management.py,sha256=eVUU9uanyXCUkzi2vcHbJPL9qFiXVasnCxPGr-r9EY8,16090
|
|
28
28
|
tdfs4ds/utils/__init__.py,sha256=-yTMfDLZbQnIRQ64s_bczzT21tDW2A8FZeq9PX5SgFU,168
|
|
29
|
-
tdfs4ds/utils/filter_management.py,sha256=
|
|
29
|
+
tdfs4ds/utils/filter_management.py,sha256=c2DVQGk3n3H9cjovH6tCd5yV7_XMuk7F1gwkXuS2JQE,27432
|
|
30
30
|
tdfs4ds/utils/info.py,sha256=sShnUxXMlvCtQ6xtShDhqdpTr6sMG0dZQhNBFgUENDY,12058
|
|
31
31
|
tdfs4ds/utils/lineage.py,sha256=gy5M42qy5fvdWmlohAY3WPYoqAyp5VakeEmeT1YjrJQ,37839
|
|
32
32
|
tdfs4ds/utils/query_management.py,sha256=kWDeTdsYcbpV5Tyhh-8uLRWvXh16nIdXNIJ97w76aNU,4848
|
|
33
|
-
tdfs4ds/utils/time_management.py,sha256=
|
|
33
|
+
tdfs4ds/utils/time_management.py,sha256=JdBtahmuvdlTo3hJFLBMBkUuH6kve3HioDHaBaFbUV0,31904
|
|
34
34
|
tdfs4ds/utils/visualization.py,sha256=5S528KoKzzkrAdCxfy7ecyqKvAXBoibNvHwz_u5ISMs,23167
|
|
35
|
-
tdfs4ds-0.2.4.
|
|
36
|
-
tdfs4ds-0.2.4.
|
|
37
|
-
tdfs4ds-0.2.4.
|
|
38
|
-
tdfs4ds-0.2.4.
|
|
35
|
+
tdfs4ds-0.2.4.42.dist-info/METADATA,sha256=yzXeVR8zY8OdDtp_Lo4it4RNsMWeotcE5y65AugWbCc,14326
|
|
36
|
+
tdfs4ds-0.2.4.42.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
37
|
+
tdfs4ds-0.2.4.42.dist-info/top_level.txt,sha256=wMyVkMvnBn8RRt1xBveGQxOpWFijPMPkMiE7G2mi8zo,8
|
|
38
|
+
tdfs4ds-0.2.4.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|