You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2022/07/30 14:29:00 UTC

[jira] [Closed] (FLINK-27387) Support Insert Multi-Table

     [ https://issues.apache.org/jira/browse/FLINK-27387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jark Wu closed FLINK-27387.
---------------------------
    Fix Version/s: 1.16.0
       Resolution: Fixed

Fixed in master: bed7993aaf9838efdd254c8140c36d4ae1f80a56

> Support Insert Multi-Table
> --------------------------
>
>                 Key: FLINK-27387
>                 URL: https://issues.apache.org/jira/browse/FLINK-27387
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Connectors / Hive
>    Affects Versions: 1.13.1, 1.15.0
>            Reporter: tartarus
>            Assignee: luoyuxia
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.16.0
>
>
> We can reproduce through a UT
> Add test case in HiveDialectITCase
> {code:java}
> @Test
> public void testInsertMultiTable() {
>     tableEnv.executeSql("create table t1 (id bigint, name string)");
>     tableEnv.executeSql("create table t2 (id bigint, name string)");
>     tableEnv.executeSql("create table t3 (id bigint, name string, age int)");
>     tableEnv.executeSql("from (select id, name, age from t3) t "
>             + "insert overwrite table t1 select id, name where age < 20 "
>             + "insert overwrite table t2 select id, name where age > 20 ");
> } {code}
> This is a very common case for batch.



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