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

DynamicTableSink#Context's getTargetColumns should not return an array of zero length

    XMLWordPrintableJSON

Details

    Description

      The interface [`Optional<int[][]> getTargetColumns()` |https://github.com/apache/flink/blob/master/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/sink/DynamicTableSink.java#L192]

      is expected to return an Optional#empty() for a sql statement without specifying a column list, e.g., 'insert into t1 select ...',

      but the current implemantation will return an int[0] in such cases, this is unexpected.

       

      Attachments

        Activity

          People

            lincoln.86xy lincoln lee
            lincoln.86xy lincoln lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: