[ https://issues.apache.org/jira/browse/FLINK-21627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
godfrey he closed FLINK-21627. ------------------------------ Resolution: Fixed Fixed in 1.13.0: c6147f2df2e81c1b1db6aa43b3a827a8c4148af1 > 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 > Components: Table SQL / Planner > Affects Versions: 1.12.0 > Reporter: wangtaiyang > Assignee: godfrey he > Priority: Critical > Labels: pull-request-available > Fix For: 1.13.0 > > > {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)