[ https://issues.apache.org/jira/browse/HIVE-21660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830643#comment-16830643 ]
Hive QA commented on HIVE-21660: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12967507/HIVE-21660.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 14 failed/errored test(s), 15935 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.metastore.TestObjectStore.catalogs (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testDatabaseOps (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testDeprecatedConfigIsOverwritten (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testDirectSQLDropParitionsCleanup (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testDirectSQLDropPartitionsCacheCrossSession (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testDirectSqlErrorMetrics (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testEmptyTrustStoreProps (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testMasterKeyOps (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testMaxEventResponse (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testPartitionOps (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testQueryCloseOnError (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testRoleOps (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testTableOps (batchId=231) org.apache.hadoop.hive.metastore.TestObjectStore.testUseSSLProperty (batchId=231) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/17086/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/17086/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-17086/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 14 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12967507 - PreCommit-HIVE-Build > Wrong result when union all and later view with explode is used > --------------------------------------------------------------- > > Key: HIVE-21660 > URL: https://issues.apache.org/jira/browse/HIVE-21660 > Project: Hive > Issue Type: Bug > Affects Versions: 3.1.1 > Reporter: Ganesha Shreedhara > Assignee: Ganesha Shreedhara > Priority: Major > Attachments: HIVE-21660.patch > > > There is a data loss when the data is inserted to a partitioned table using > union all and lateral view with explode. > > *Steps to reproduce:* > > {code:java} > create table t1 (id int, dt string); > insert into t1 values (2, '2019-04-01'); > create table t2( id int, dates array<string>); > insert into t2 select 1 as id, array('2019-01-01','2019-01-02','2019-01-03') > as dates; > create table dst (id int) partitioned by (dt string); > set hive.exec.dynamic.partition.mode=nonstrict; > set hive.exec.dynamic.partition=true; > insert overwrite table dst partition (dt) > select t.id, t.dt from ( > select id, dt from t1 > union all > select id, dts as dt from t2 tt2 lateral view explode(tt2.dates) dd as dts ) > t; > select * from dst_hdfs; > {code} > > > *Actual Result:* > {code:java} > +--------------+--------------+ > | 2 | 2019-04-01 | > +--------------+--------------+{code} > > *Expected Result* (Run only the select part from the above insert query)*:* > {code:java} > +-------+------------+ > | 2 | 2019-04-01 | > | 1 | 2019-01-01 | > | 1 | 2019-01-02 | > | 1 | 2019-01-03 | > +-------+------------+{code} > > Data retrieved using union all and lateral view with explode from second > table is missing. -- This message was sent by Atlassian JIRA (v7.6.3#76005)