Hequn Cheng created FLINK-12778: ----------------------------------- Summary: Fix deriveTableAggRowType bug for non-composite types Key: FLINK-12778 URL: https://issues.apache.org/jira/browse/FLINK-12778 Project: Flink Issue Type: Bug Components: Table SQL / API Reporter: Hequn Cheng Assignee: Hequn Cheng
Currently, we call {{aggCalls.get(0).`type`.getFieldList.foreach(builder.add)}} when derive row type for table aggregate. However, for types which are not composite types, the field list would be null. Table Aggregate should, of course, support non-composite types. To solve the problem, we should judge whether types are structured. This is because a composite type will be converted to a RelDataType which contains field list and is structured. -- This message was sent by Atlassian JIRA (v7.6.3#76005)