Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
1.34.0
Description
For example:
Query SQL is
select a from table order by coalesce(a,b)
When we convert this sql to relNode and convert it back to SQL by RelToConverter, the result is:
select a from table order by 2
But this sql syntax is wrong because there is no ordinal 2
Attachments
Attachments
Issue Links
- Blocked
-
CALCITE-5530 RelToSqlConverter[ORDER BY] generates an incorrect field alias when 2 projection fields have the same name
- Closed
- links to