We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5366da2 commit 211cbfcCopy full SHA for 211cbfc
dlt/destinations/dataset/utils.py
@@ -146,7 +146,9 @@ def normalize_query(
146
if node.db != expanded_path[0]:
147
node.set("catalog", sqlglot.to_identifier(expanded_path[0], quoted=False))
148
if isinstance(node, sge.Alias):
149
- node.set("alias", naming.normalize_identifier(node.alias))
+ node.set(
150
+ "alias", sqlglot.to_identifier(naming.normalize_identifier(node.alias), quoted=True)
151
+ )
152
# quote and case-fold identifiers, TODO: maybe we could be more intelligent, but then we need to unquote ibis
153
if isinstance(node, sge.Identifier):
154
if is_casefolding:
0 commit comments