Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The SQL parser allows invalid MERGE statements with mismatched parentheses. For example, the following invalid statement is treated as valid but is missing a trailing ')':
merge into emps as e using temps as t on e.empno = t.empno when not matched then insert (a, b) (values (1, 2);
And the following invalid statement is treated as valid but has an unmatched trailing ')':
merge into emps as e using temps as t on e.empno = t.empno when not matched then insert (a, b) values (1, 2));
Attachments
Issue Links
- relates to
-
CALCITE-5194 Cannot parse parenthesized UNION in subquery
- Closed