Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is meant as a template for writing a FLIP. To create a FLIP choose Tools->Copy on this page and modify with your content and replace the heading with the next FLIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state[One of "Under Discussion", "Accepted", "Rejected"]

...

By adding targetColumnList information to the DynamicTableSink#Context, this problem can be solved.

Public Interfaces

Add new new getTargetColumnList to DynamicTableSink#Context

Code Block
languagejava
        /**
         * Returns the user specified target column name list or an empty list when not specified.
         *
         * <p>This information comes from the column list of the DML clause, e.g.,
         *
         * <ul>
         *   <li>insert: 'insert into target(a, b, c) ...', the column list will be 'a, b, c'. the
         *       column list will be empty for 'insert into target select ...'.
         *   <li>update: 'update target set a=1, b=2 where ...', the column list will be 'a, b'.
         * </ul>
         *
         * <p>Note: the column list will always be empty in the delete clause.
         */
        List<String> getTargetColumnList();

...