[jira] [Created] (FLINK-13902) Can not use index to convert FieldReferenceExpression to RexNode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-13902) Can not use index to convert FieldReferenceExpression to RexNode

Shang Yuanchun (Jira)
Jingsong Lee created FLINK-13902:
------------------------------------

             Summary: Can not use index to convert FieldReferenceExpression to RexNode
                 Key: FLINK-13902
                 URL: https://issues.apache.org/jira/browse/FLINK-13902
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
            Reporter: Jingsong Lee


Now, we can not use inputCount+inputIndex+FieldIndex to construct rex input reference of calcite.

See QueryOperationConverter.SingleRelVisitor.visit(AggregateQueryOperation). Calcite will shuffle the output order of groupings.(See RelBuilder.aggregate, it use ImmutableBitSet to store groupings) So the output fields order will be changed too. This lead to the output fields orders of AggregateOperationFactory is different from calcite output orders.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)