Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
1.29.0
-
None
-
jdk8
Description
I reproduce with the following query.
SELECT sum(shelf_width) as shelf_width FROM product ORDER BY shelf_width
you must have noticed that the shelf_width alias is same with field 'shelf_width' in sum.
I expected the query hasn't changed when I test in RelToSqlConverterTest. But I get unexpected query is
SELECT sum(shelf_width) as shelf_width FROM product ORDER BY sum(shelf_width)
the unexpected query is not valid in the dialect which support order by alias conformance.
Attachments
Issue Links
- Blocked
-
CALCITE-2552 JDBC adapter generates Non-Dialect Specific Order By Field Identifier
- Closed
-
CALCITE-3440 RelToSqlConverter does not properly alias ambiguous ORDER BY
- Closed
- is related to
-
CALCITE-5724 Generated SQL uses literal values in ORDER BY clauses
- Open
-
CALCITE-5775 Null direction emulation broken for complex expressions on some dialects
- Open
-
CALCITE-2552 JDBC adapter generates Non-Dialect Specific Order By Field Identifier
- Closed
- links to