[ https://issues.apache.org/jira/browse/HIVE-20570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617050#comment-16617050 ]
Hive QA commented on HIVE-20570: -------------------------------- | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 8m 27s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 6s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 4m 3s{color} | {color:blue} ql in master has 2326 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 59s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 24s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 4s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 4s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 38s{color} | {color:green} ql: The patch generated 0 new + 1 unchanged - 2 fixed = 1 total (was 3) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 4m 11s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 0s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 14s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 24m 15s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-13848/dev-support/hive-personality.sh | | git revision | master / a37827e | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-13848/yetus.txt | | Powered by | Apache Yetus http://yetus.apache.org | This message was automatically generated. > Union ALL with hive.optimize.union.remove=true has incorrect plan > ----------------------------------------------------------------- > > Key: HIVE-20570 > URL: https://issues.apache.org/jira/browse/HIVE-20570 > Project: Hive > Issue Type: Bug > Reporter: Janaki Lahorani > Assignee: Janaki Lahorani > Priority: Major > Attachments: HIVE-20570.1.patch > > > When hive.optimize.union.remove=true and a select query is run with group by, > the final fetch is waiting only for one of the branches and not both. > Test Case: > {code} > create table if not exists test_table(column1 string, column2 int); > insert into test_table values('a',1),('b',2); > set hive.optimize.union.remove=true; > set mapred.input.dir.recursive=true; > explain > select column1 from test_table group by column1 > union all > select column1 from test_table group by column1; > {code} > In the below the two stages correspond to the two parts of union all. But > the final fetch operator (Stage 0) only depends on one of the stages, but it > should depend on both. > Plan: > {code} > STAGE DEPENDENCIES: > Stage-1 is a root stage > Stage-2 is a root stage > *Stage-0 depends on stages: Stage-1* > STAGE PLANS: > Stage: Stage-1 > Map Reduce > Map Operator Tree: > TableScan > alias: test_table > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE Column > stats: NONE > Select Operator > expressions: column1 (type: string) > outputColumnNames: column1 > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE > Column stats: NONE > Group By Operator > keys: column1 (type: string) > mode: hash > outputColumnNames: _col0 > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE > Column stats: NONE > Reduce Output Operator > key expressions: _col0 (type: string) > sort order: + > Map-reduce partition columns: _col0 (type: string) > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE > Column stats: NONE > Execution mode: vectorized > Reduce Operator Tree: > Group By Operator > keys: KEY._col0 (type: string) > mode: mergepartial > outputColumnNames: _col0 > Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column > stats: NONE > File Output Operator > compressed: false > Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column > stats: NONE > table: > input format: org.apache.hadoop.mapred.SequenceFileInputFormat > output format: > org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat > serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe > Stage: Stage-2 > Map Reduce > Map Operator Tree: > TableScan > alias: test_table > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE Column > stats: NONE > Select Operator > expressions: column1 (type: string) > outputColumnNames: column1 > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE > Column stats: NONE > Group By Operator > keys: column1 (type: string) > mode: hash > outputColumnNames: _col0 > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE > Column stats: NONE > Reduce Output Operator > key expressions: _col0 (type: string) > sort order: + > Map-reduce partition columns: _col0 (type: string) > Statistics: Num rows: 2 Data size: 6 Basic stats: COMPLETE > Column stats: NONE > Execution mode: vectorized > Reduce Operator Tree: > Group By Operator > keys: KEY._col0 (type: string) > mode: mergepartial > outputColumnNames: _col0 > Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column > stats: NONE > File Output Operator > compressed: false > Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column > stats: NONE > table: > input format: org.apache.hadoop.mapred.SequenceFileInputFormat > output format: > org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat > serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe > Stage: Stage-0 > Fetch Operator > limit: -1 > Processor Tree: > ListSink > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)