Skip to content

Commit

Permalink
fix render select from union
Browse files Browse the repository at this point in the history
  • Loading branch information
ea-rus committed Nov 11, 2024
1 parent c6983a2 commit 64622e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindsdb_sql/render/sqlalchemy_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def to_table(self, node):
if node.alias:
table = aliased(table, name=self.get_alias(node.alias))

elif isinstance(node, ast.Select):
elif isinstance(node, (ast.Select, ast.Union, ast.Intersect, ast.Except)):
sub_stmt = self.prepare_select(node)
alias = None
if node.alias:
Expand Down

0 comments on commit 64622e9

Please sign in to comment.