Skip to content

Commit

Permalink
fix parsing (.. union ..) union ..
Browse files Browse the repository at this point in the history
  • Loading branch information
ea-rus committed Nov 8, 2024
1 parent c34fefc commit 6c93ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mindsdb_sql/parser/dialects/mindsdb/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,9 @@ def union(self, p):

# tableau
@_('LPAREN select RPAREN')
@_('LPAREN union RPAREN')
def select(self, p):
return p.select
return p[1]

# WITH
@_('ctes select')
Expand Down

0 comments on commit 6c93ee0

Please sign in to comment.