Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.36.0
Description
CALCITE-5869 introduced a change which removes MEASURE when inferring the return type when an operator is applied.
The AS keyword for aliases is implemented as an operator in the SQL AST. Using AS removes MEASURE when typing expressions that have an alias in the SELECT clause.
Thus, the type of SELECT m and SELECT m AS m are different when m is a measure. This is not desirable.
Proposed fix: don't change type when using the AS operator.
Attachments
Issue Links
- links to