summaryrefslogtreecommitdiffstats
path: root/sqlglot/executor/table.py
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2023-12-10 10:46:01 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2023-12-10 10:46:01 +0000
commit8fe30fd23dc37ec3516e530a86d1c4b604e71241 (patch)
tree6e2ebbf565b0351fd0f003f488a8339e771ad90c /sqlglot/executor/table.py
parentReleasing debian version 19.0.1-1. (diff)
downloadsqlglot-8fe30fd23dc37ec3516e530a86d1c4b604e71241.tar.xz
sqlglot-8fe30fd23dc37ec3516e530a86d1c4b604e71241.zip
Merging upstream version 20.1.0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'sqlglot/executor/table.py')
-rw-r--r--sqlglot/executor/table.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sqlglot/executor/table.py b/sqlglot/executor/table.py
index 7931535..87699f8 100644
--- a/sqlglot/executor/table.py
+++ b/sqlglot/executor/table.py
@@ -120,20 +120,22 @@ def _ensure_tables(d: t.Optional[t.Dict], dialect: DialectType = None) -> t.Dict
depth = dict_depth(d)
if depth > 1:
return {
- normalize_name(k, dialect=dialect, is_table=True): _ensure_tables(v, dialect=dialect)
+ normalize_name(k, dialect=dialect, is_table=True).name: _ensure_tables(
+ v, dialect=dialect
+ )
for k, v in d.items()
}
result = {}
for table_name, table in d.items():
- table_name = normalize_name(table_name, dialect=dialect)
+ table_name = normalize_name(table_name, dialect=dialect).name
if isinstance(table, Table):
result[table_name] = table
else:
table = [
{
- normalize_name(column_name, dialect=dialect): value
+ normalize_name(column_name, dialect=dialect).name: value
for column_name, value in row.items()
}
for row in table