data-factory-utils 3.2.0__tar.gz → 3.2.2__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.
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/PKG-INFO +1 -1
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/pyproject.toml +1 -1
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/pyproject.toml.orig +1 -1
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/src/data_factory_utils/query.py +5 -2
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/README.md +0 -0
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/src/data_factory_utils/__init__.py +0 -0
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/src/data_factory_utils/athena.py +0 -0
- {data_factory_utils-3.2.0 → data_factory_utils-3.2.2}/src/data_factory_utils/environment.py +0 -0
|
@@ -727,7 +727,6 @@ class Query:
|
|
|
727
727
|
self.parts["INSERT INTO"].append(f"{f'({", ".join(columns)})'}")
|
|
728
728
|
|
|
729
729
|
for value in (v for value_set in values for v in value_set):
|
|
730
|
-
validate_identifier(value)
|
|
731
730
|
if not all(len(value) == len(values[0]) for value in values):
|
|
732
731
|
msg = "All values to insert must have the same number of columns."
|
|
733
732
|
raise ValueError(msg)
|
|
@@ -793,7 +792,11 @@ class Query:
|
|
|
793
792
|
if database and table:
|
|
794
793
|
validate_identifier(database)
|
|
795
794
|
validate_identifier(table)
|
|
796
|
-
self.parts["FROM"].append(
|
|
795
|
+
self.parts["FROM"].append(
|
|
796
|
+
f'"{database}{self.db_suffix}"."{table}" {alias}'
|
|
797
|
+
if alias
|
|
798
|
+
else f'"{database}{self.db_suffix}"."{table}"'
|
|
799
|
+
)
|
|
797
800
|
if subquery:
|
|
798
801
|
self.parts["FROM"].append(f"{subquery!s} {alias}" if alias else str(subquery))
|
|
799
802
|
return self
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|