clickzetta-semantic-model-generator 1.0.12__py3-none-any.whl → 1.0.14__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.
- {clickzetta_semantic_model_generator-1.0.12.dist-info → clickzetta_semantic_model_generator-1.0.14.dist-info}/METADATA +1 -1
- {clickzetta_semantic_model_generator-1.0.12.dist-info → clickzetta_semantic_model_generator-1.0.14.dist-info}/RECORD +5 -5
- semantic_model_generator/clickzetta_utils/clickzetta_connector.py +26 -19
- {clickzetta_semantic_model_generator-1.0.12.dist-info → clickzetta_semantic_model_generator-1.0.14.dist-info}/LICENSE +0 -0
- {clickzetta_semantic_model_generator-1.0.12.dist-info → clickzetta_semantic_model_generator-1.0.14.dist-info}/WHEEL +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
semantic_model_generator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
semantic_model_generator/clickzetta_utils/clickzetta_connector.py,sha256=
|
2
|
+
semantic_model_generator/clickzetta_utils/clickzetta_connector.py,sha256=u4wLPrZAB5Um-Db388bWH2JzDX4r9lZNOR79ncNvBuc,36470
|
3
3
|
semantic_model_generator/clickzetta_utils/env_vars.py,sha256=8cbL6R75c1-aVQ2i1TDr9SiHCUjTrgvXbIRz4MbcmbE,7664
|
4
4
|
semantic_model_generator/clickzetta_utils/utils.py,sha256=UBfWy9qOTyut8tL02gOHHbh6Uz8RqRz5Mm2YdKWFN54,4950
|
5
5
|
semantic_model_generator/data_processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -32,7 +32,7 @@ semantic_model_generator/validate/context_length.py,sha256=HL-GfaRXNcVji1-pAFGXG
|
|
32
32
|
semantic_model_generator/validate/keywords.py,sha256=frZ5HjRXP69K6dYAU5_d86oSp40_3yoLUg1eQwU3oLM,7080
|
33
33
|
semantic_model_generator/validate/schema.py,sha256=eL_wl5yscIeczwNBRUKhF_7QqWW2wSGimkgaOhMFsrA,5893
|
34
34
|
semantic_model_generator/validate_model.py,sha256=Uq-V-GfPeF2Dy4l9uF5Guv104gDCDGh0Cxz1AJOu5dk,836
|
35
|
-
clickzetta_semantic_model_generator-1.0.
|
36
|
-
clickzetta_semantic_model_generator-1.0.
|
37
|
-
clickzetta_semantic_model_generator-1.0.
|
38
|
-
clickzetta_semantic_model_generator-1.0.
|
35
|
+
clickzetta_semantic_model_generator-1.0.14.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
36
|
+
clickzetta_semantic_model_generator-1.0.14.dist-info/METADATA,sha256=RIO7DImIBM2Ei5AaNEumE5c3S1VBqFMh8rFRZ6UDSO0,7817
|
37
|
+
clickzetta_semantic_model_generator-1.0.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
38
|
+
clickzetta_semantic_model_generator-1.0.14.dist-info/RECORD,,
|
@@ -4,7 +4,7 @@ import concurrent.futures
|
|
4
4
|
import re
|
5
5
|
from collections import defaultdict
|
6
6
|
from contextlib import contextmanager
|
7
|
-
from typing import Any, Dict, Generator, List, Optional, TypeVar, Union
|
7
|
+
from typing import Any, Dict, Generator, List, Optional, Tuple, TypeVar, Union
|
8
8
|
|
9
9
|
import pandas as pd
|
10
10
|
from clickzetta.zettapark.session import Session
|
@@ -482,10 +482,8 @@ def _fetch_columns_via_show(
|
|
482
482
|
rows: List[pd.DataFrame] = []
|
483
483
|
category = _catalog_category(session, workspace)
|
484
484
|
is_shared_catalog = category == "SHARED"
|
485
|
-
catalog = workspace
|
485
|
+
catalog = workspace
|
486
486
|
schema_token = table_schema or ""
|
487
|
-
if schema_token and not is_shared_catalog:
|
488
|
-
schema_token = schema_token.upper()
|
489
487
|
|
490
488
|
for table_name in table_names:
|
491
489
|
table_token = str(table_name).strip()
|
@@ -493,21 +491,30 @@ def _fetch_columns_via_show(
|
|
493
491
|
continue
|
494
492
|
|
495
493
|
identifier_candidates: List[str] = []
|
496
|
-
|
497
|
-
|
498
|
-
)
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
else
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
494
|
+
seen_identifiers: set[str] = set()
|
495
|
+
|
496
|
+
def _add_identifier(parts: Tuple[str, ...], *, quoted: bool) -> None:
|
497
|
+
tokens = [part.strip() for part in parts if part and part.strip()]
|
498
|
+
if not tokens:
|
499
|
+
return
|
500
|
+
if quoted:
|
501
|
+
identifier = ".".join(quote_identifier(token) for token in tokens)
|
502
|
+
else:
|
503
|
+
identifier = ".".join(tokens)
|
504
|
+
if identifier and identifier not in seen_identifiers:
|
505
|
+
identifier_candidates.append(identifier)
|
506
|
+
seen_identifiers.add(identifier)
|
507
|
+
|
508
|
+
raw_parts = (catalog, schema_token, table_token)
|
509
|
+
schema_parts = (schema_token, table_token)
|
510
|
+
table_parts = (table_token,)
|
511
|
+
|
512
|
+
_add_identifier(raw_parts, quoted=False)
|
513
|
+
_add_identifier(schema_parts, quoted=False)
|
514
|
+
_add_identifier(table_parts, quoted=False)
|
515
|
+
_add_identifier(raw_parts, quoted=True)
|
516
|
+
_add_identifier(schema_parts, quoted=True)
|
517
|
+
_add_identifier(table_parts, quoted=True)
|
511
518
|
|
512
519
|
df = pd.DataFrame()
|
513
520
|
df_source = ""
|
File without changes
|
File without changes
|