You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Hequn Cheng (JIRA)" <ji...@apache.org> on 2019/06/07 14:30:00 UTC

[jira] [Created] (FLINK-12778) Fix deriveTableAggRowType bug for non-composite types

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)