[ https://issues.apache.org/jira/browse/HIVE-15440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Vovchenko updated HIVE-15440: ------------------------------------- Affects Version/s: 2.0.0 Status: Patch Available (was: Open) > Multiple inserts query from the union table failed by > java.lang.IllegalArgumentException > ---------------------------------------------------------------------------------------- > > Key: HIVE-15440 > URL: https://issues.apache.org/jira/browse/HIVE-15440 > Project: Hive > Issue Type: Bug > Affects Versions: 2.0.0 > Reporter: Aleksey Vovchenko > Assignee: Aleksey Vovchenko > > STEP 1. Configure Hive on Tez > STEP2. Create test tables > hive> create table t1(x int); > hive> create table t2(x int); > hive> create table t1_tmp(x int); > hive> create table t2_tmp(x int); > STEP 3. Run query > hive> from(select x from t1 union all select x from t2)tbl insert overwrite > table t1_tmp select x insert overwrite table t2_tmp select x; > RESULT > 2016-11-30 13:50:51,610 ERROR [main]: exec.Task (TezTask.java:execute(197)) - > Failed to execute tez graph. > java.lang.IllegalArgumentException: VertexGroup must have at least 2 members > at org.apache.tez.dag.api.VertexGroup.<init>(VertexGroup.java:77) > at org.apache.tez.dag.api.DAG.createVertexGroup(DAG.java:177) > at org.apache.hadoop.hive.ql.exec.tez.TezTask.build(TezTask.java:333) > at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:169) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160) > at > org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1635) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1395) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1208) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1035) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1025) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:201) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:153) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:364) > at > org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:712) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:631) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at org.apache.hadoop.util.RunJar.main(RunJar.java:212) > This issue doesn't happen on MR mode. -- This message was sent by Atlassian JIRA (v6.3.4#6332)