Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12778

Fix deriveTableAggRowType bug for non-composite types

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              hequn8128 Hequn Cheng
              hequn8128 Hequn Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m