Sample HS2 logs when the 'merge task followed by a move task' conditional task (Stage-5) is chosen: 2019-12-17 08:38:48,387 INFO org.apache.hadoop.hive.ql.Driver: [HiveServer2-Background-Pool: Thread-543]: Executing command(queryId=hive_20191217083848_45a0f635-14d9-4ffe-94c0-eed3f7cfe31c): insert into test partition(b) select a,b from raw ... 2019-12-17 08:40:19,685 INFO org.apache.hadoop.hive.ql.Driver: [HiveServer2-Background-Pool: Thread-543]: Starting task [Stage-7:CONDITIONAL] in serial mode 2019-12-17 08:40:19,689 INFO org.apache.hadoop.hive.ql.exec.Task: [HiveServer2-Background-Pool: Thread-543]: Stage-4 is filtered out by condition resolver. 2019-12-17 08:40:19,689 INFO org.apache.hadoop.hive.ql.exec.Task: [HiveServer2-Background-Pool: Thread-543]: Stage-3 is filtered out by condition resolver. 2019-12-17 08:40:19,689 INFO org.apache.hadoop.hive.ql.exec.Task: [HiveServer2-Background-Pool: Thread-543]: Stage-5 is selected by condition resolver. <------ 2019-12-17 08:40:19,689 INFO org.apache.hadoop.hive.ql.Driver: [HiveServer2-Background-Pool: Thread-543]: Launching Job 3 out of 3 2019-12-17 08:40:19,689 INFO org.apache.hadoop.hive.ql.Driver: [HiveServer2-Background-Pool: Thread-543]: Starting task [Stage-5:MAPRED] in serial mode ... 2019-12-17 08:41:42,904 INFO org.apache.hadoop.hive.ql.Driver: [HiveServer2-Background-Pool: Thread-543]: Starting task [Stage-6:MOVE] in serial mode 2019-12-17 08:41:42,905 INFO hive.metastore: [HiveServer2-Background-Pool: Thread-543]: Closed a connection to metastore, current connections: 36 2019-12-17 08:41:42,906 INFO org.apache.hadoop.hive.ql.exec.Task: [HiveServer2-Background-Pool: Thread-543]: Moving data to directory hdfs://:8020/user/hive/warehouse/test/.hive-staging_hive_2019-12-17_08-38-48_246_6232478201431359625-3/-ext-10000/b=c%253Ad from hdfs://:8020/user/hive/warehouse/test/.hive-staging_hive_2019-12-17_08-38-48_246_6232478201431359625-3/-ext-10002/b=c%3Ad <--------- 2019-12-17 08:41:42,922 INFO org.apache.hadoop.hive.ql.Driver: [HiveServer2-Background-Pool: Thread-543]: Starting task [Stage-0:MOVE] in serial mode 2019-12-17 08:41:42,922 INFO org.apache.hadoop.hive.ql.exec.Task: [HiveServer2-Background-Pool: Thread-543]: Loading data to table default.test partition (b=null) from hdfs://:8020/user/hive/warehouse/test/.hive-staging_hive_2019-12-17_08-38-48_246_6232478201431359625-3/-ext-10000 2019-12-17 08:41:42,923 INFO hive.metastore: [HiveServer2-Background-Pool: Thread-543]: HMS client filtering is enabled. Reproduction table metadata: create table raw(a string, b string); create table test(a string) partitioned by (b string); explain insert into test partition(b) select a,b from raw: STAGE DEPENDENCIES: Stage-1 is a root stage Stage-7 depends on stages: Stage-1 , consists of Stage-4, Stage-3, Stage-5 Stage-4 Stage-0 depends on stages: Stage-4, Stage-3, Stage-6 Stage-2 depends on stages: Stage-0 Stage-3 Stage-5 Stage-6 depends on stages: Stage-5 ...