You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Jingsong Lee (Jira)" <ji...@apache.org> on 2019/08/30 02:28:00 UTC
[jira] [Created] (FLINK-13902) Can not use index to convert
FieldReferenceExpression to RexNode
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)