Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.21.0
-
None
Description
For Postgres and other DBs which support this, the generated SQL is (values (1, 'a'), (2, 'bb')) as t(x, y). When it's used in a join the SqlImplementor adds a unique alias and winds up rendering as (values (1, 'a'), (2, 'bb')) as t(x, y) as t0. Perhaps it just needs wrapped in parens, or we could create a unique alias in RelToSqlConverter and avoid generating another one in the result() method.
Attachments
Issue Links
- is caused by
-
CALCITE-3191 In JDBC adapter for MySQL, implement Values by generating SELECT without FROM
- Closed