Skip to content

Commit 3833ce0

Browse files
committed
fix: exp.Subquery alias
1 parent 8fbb1f0 commit 3833ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygwalker/data_parsers/database_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _format_sql(self, sql: str) -> str:
136136

137137
sub_query = exp.Subquery(
138138
this=sqlglot.parse(self.conn.view_sql, read=sqlglot_dialect_name)[0],
139-
alias="temp_view_name"
139+
alias=exp.TableAlias(this="temp_view_name")
140140
)
141141
ast = sqlglot.parse(sql, read=DuckdbDialect)[0]
142142
for from_exp in ast.find_all(exp.From):

0 commit comments

Comments
 (0)