hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21795) Rollup summary row might be missing when a mapjoin is happening on a partitioned table
Date Tue, 28 May 2019 12:28:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-21795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16849666#comment-16849666
] 

Hive QA commented on HIVE-21795:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12969990/HIVE-21795.01.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 16064 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[groupby_rollup_empty2] (batchId=93)
org.apache.hive.hcatalog.api.TestHCatClient.testTransportFailure (batchId=206)
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/17326/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/17326/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-17326/

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: 2 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12969990 - PreCommit-HIVE-Build

> Rollup summary row might be missing when a mapjoin is happening on a partitioned table
> --------------------------------------------------------------------------------------
>
>                 Key: HIVE-21795
>                 URL: https://issues.apache.org/jira/browse/HIVE-21795
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>         Attachments: HIVE-21795.01.patch
>
>
> * join between 2 tables; the larger is partitioned
> * mapjoin is selected
> * dpp is sending events from the small table to the large on
> * rollup: summary row is missing if dpp removes all input partitions
> the following should have a 1 row result.
> {code}
> set hive.auto.convert.join=true;
> drop table if exists store_sales_s0;
> drop table if exists store_s0;
> CREATE TABLE store_sales_s0 (ss_item_sk int,payload string,payload2 string,payload3 string)
PARTITIONED BY (ss_store_sk int) stored as orc TBLPROPERTIES( 'transactional'='false');
> CREATE TABLE store_s0 (s_item_sk int,s_store_sk int,s_state string) stored as orc TBLPROPERTIES(
'transactional'='false');
> insert into store_s0 values
>     (1,10,'XX'),
>     (2,20,'AA'),
>     (3,30,'ZZ')
>     ;
> insert into store_sales_s0 partition(ss_store_sk=9) values (1,'xxx','xxx','xxx'),(2,'xxx','xxx','xxx'),(3,'xxx','xxx','xxx'),(4,'xxx','xxx','xxx'),(5,'xxx','xxx','xxx');
> insert into store_sales_s0 partition(ss_store_sk=39) values (1,'xxx','xxx','xxx'),(2,'xxx','xxx','xxx'),(3,'xxx','xxx','xxx'),(4,'xxx','xxx','xxx'),(5,'xxx','xxx','xxx');
> explain select grouping(s_state) from store_s0, store_sales_s0 where ss_store_sk = s_store_sk
and s_state in ('SD','FL', 'MI', 'LA', 'MO', 'SC') group by rollup(ss_item_sk, s_state) order
by s_state;
> select grouping(s_state) from store_s0, store_sales_s0 where ss_store_sk = s_store_sk
and s_state in ('SD','FL', 'MI', 'LA', 'MO', 'SC') group by rollup(ss_item_sk, s_state) order
by s_state;
> {code}
> explain:
> {code}
> STAGE PLANS:
>   Stage: Stage-1
>     Tez
> #### A masked pattern was here ####
>       Edges:
>         Map 2 <- Map 1 (BROADCAST_EDGE)
> [...]
> #### A masked pattern was here ####
>       Vertices:
>         Map 1 
>             Map Operator Tree:
> [...]
>                           Dynamic Partitioning Event Operator
>                             Target column: ss_store_sk (int)
>                             Target Input: store_sales_s0
>                             Partition key expr: ss_store_sk
>                             Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE
Column stats: COMPLETE
>                             Target Vertex: Map 2
>             Execution mode: vectorized, llap
>             LLAP IO: all inputs
> [...]
>         Map 2 
>             Map Operator Tree:
>                 TableScan
>                   alias: store_sales_s0
>                   filterExpr: ss_store_sk is not null (type: boolean)
>                   Statistics: Num rows: 10 Data size: 80 Basic stats: COMPLETE Column
stats: COMPLETE
>                   Select Operator
>                     expressions: ss_item_sk (type: int), ss_store_sk (type: int)
>                     outputColumnNames: _col0, _col1
>                     Statistics: Num rows: 10 Data size: 80 Basic stats: COMPLETE Column
stats: COMPLETE
>                     Map Join Operator
>                       condition map:
>                            Inner Join 0 to 1
>                       keys:
>                         0 _col0 (type: int)
>                         1 _col1 (type: int)
>                       outputColumnNames: _col1, _col2
>                       input vertices:
>                         0 Map 1
>                       Statistics: Num rows: 10 Data size: 900 Basic stats: COMPLETE Column
stats: COMPLETE
> [...]
>             Execution mode: vectorized, llap
>             LLAP IO: all inputs
> [...]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message