Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Note: This issue is related to https://issues.apache.org/jira/browse/CALCITE-5265
You should view comments in CALCITE-5265 before you view this issue.
Add a case in SqlParserTest:
// code placeholder @Test void testWithSelect() { final String sql = "with emp2 as (select * from emp)\n" + "select * from emp2\n"; final String expected = "WITH `EMP2` AS (SELECT *\n" + "FROM `EMP`) SELECT *\n" + "FROM `EMP2`"; sql(sql).ok(expected); }
will fail, because actual sql is with parentheses.
Attachments
Issue Links
- blocks
-
CALCITE-5252 JDBC adapter sometimes miss parentheses around SELECT in WITH_ITEM body
- Closed
- links to