You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "wangtaiyang (Jira)" <ji...@apache.org> on 2021/03/05 07:48:00 UTC

[jira] [Created] (FLINK-21627) When you insert multiple inserts with statementSet, you modify multiple inserts with OPTIONS('table-name '=' XXX '), but only the first one takes effect

wangtaiyang created FLINK-21627:
-----------------------------------

             Summary: When you insert multiple inserts with statementSet, you modify multiple inserts with OPTIONS('table-name '=' XXX '), but only the first one takes effect
                 Key: FLINK-21627
                 URL: https://issues.apache.org/jira/browse/FLINK-21627
             Project: Flink
          Issue Type: Bug
    Affects Versions: 1.12.0
            Reporter: wangtaiyang


{code:java}
//代码占位符
StatementSet statementSet = tableEnvironment.createStatementSet();
String sql1 = "insert into test select a,b,c from test_a_12342 /*+
OPTIONS('table-name'='test_a_1')*/";
String sql2 = "insert into test select a,b,c from test_a_12342 /*+
OPTIONS('table-name'='test_a_2')*/";
statementSet.addInsertSql(sql1);
statementSet.addInsertSql(sql2);
statementSet.execute();
{code}
Sql code as above, in the final after the insert is put test_a_1 table data into the two times, and test_a_2 data did not insert, is excuse me this bug



--
This message was sent by Atlassian Jira
(v8.3.4#803005)