lincoln lee created FLINK-36000:
-----------------------------------

             Summary: DynamicTableSink#Context's getTargetColumns should not 
return an array of zero length
                 Key: FLINK-36000
                 URL: https://issues.apache.org/jira/browse/FLINK-36000
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
    Affects Versions: 1.19.1, 1.20.0
            Reporter: lincoln lee
            Assignee: lincoln lee
             Fix For: 2.0.0


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.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to