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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: data-factory-utils
3
- Version: 3.2.0
3
+ Version: 3.2.2
4
4
  Summary: Utility functions for interacting with data factories.
5
5
  Requires-Dist: boto3>=1.42.8
6
6
  Requires-Dist: boto3-stubs>=1.42.89
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "data-factory-utils"
3
- version = "3.2.0"
3
+ version = "3.2.2"
4
4
  description = "Utility functions for interacting with data factories."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "data-factory-utils"
3
- version = "3.2.0"
3
+ version = "3.2.2"
4
4
  description = "Utility functions for interacting with data factories."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -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(f'"{database}"."{table}" {alias}' if alias else f'"{database}"."{table}"')
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