Skip to content

Commit 72e6796

Browse files
feat(duckdb): Fix and updates tests for pivot subquery string lietral column names (#7757)
* feat(duckdb): Fix and updates tests for pivot subquery string lietral column names * Fix: Transpile bug with pivot subquery string literal column names
1 parent 4ada15a commit 72e6796

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sqlglot-integration-tests

sqlglot/optimizer/qualify_columns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def _expand_stars(
853853

854854
if pivot_columns:
855855
new_selections.extend(
856-
alias(exp.column(name, table=pivot.alias), name, copy=False)
856+
alias(exp.column(name, table=pivot.alias or None), name, copy=False)
857857
for name in pivot_columns
858858
if name not in columns_to_exclude
859859
)

0 commit comments

Comments
 (0)