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-23082) PK/FK stat rescale doesn't work in some cases
Date Tue, 31 Mar 2020 22:02:00 GMT

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

Hive QA commented on HIVE-23082:
--------------------------------



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

{color:red}ERROR:{color} -1 due to build exiting with an error

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

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and
output '+ date '+%Y-%m-%d %T.%3N'
2020-03-31 22:00:20.393
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-21357/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2020-03-31 22:00:20.397
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at aa142d1 HIVE-22785: Update/delete/merge statements not optimized through CBO
(Krisztian Kasa, reviewed by Jesus Camacho Rodriguez)
+ git clean -f -d
Removing standalone-metastore/metastore-server/src/gen/
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at aa142d1 HIVE-22785: Update/delete/merge statements not optimized through CBO
(Krisztian Kasa, reviewed by Jesus Camacho Rodriguez)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2020-03-31 22:00:21.523
+ rm -rf ../yetus_PreCommit-HIVE-Build-21357
+ mkdir ../yetus_PreCommit-HIVE-Build-21357
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-21357
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-21357/yetus
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch
Trying to apply the patch with -p0
error: patch failed: ql/src/test/results/clientpositive/llap/semijoin.q.out:1930
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/llap/semijoin.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/llap/vector_leftsemi_mapjoin.q.out:1846
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/llap/vector_leftsemi_mapjoin.q.out' with
conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/constraints/query51.q.out:117
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/constraints/query51.q.out' with
conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/constraints/query70.q.out:125
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/constraints/query70.q.out' with
conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/query51.q.out:117
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/query51.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/query70.q.out:125
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/query70.q.out' with conflicts.
Going to apply patch with: git apply -p0
/data/hiveptest/working/scratch/build.patch:926: trailing whitespace.
col_name            	sr_reason_sk        
/data/hiveptest/working/scratch/build.patch:927: trailing whitespace.
data_type           	bigint              
/data/hiveptest/working/scratch/build.patch:928: trailing whitespace.
min                 	1                   
/data/hiveptest/working/scratch/build.patch:929: trailing whitespace.
max                 	70                  
/data/hiveptest/working/scratch/build.patch:930: trailing whitespace.
num_nulls           	1                   
error: patch failed: ql/src/test/results/clientpositive/llap/semijoin.q.out:1930
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/llap/semijoin.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/llap/vector_leftsemi_mapjoin.q.out:1846
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/llap/vector_leftsemi_mapjoin.q.out' with
conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/constraints/query51.q.out:117
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/constraints/query51.q.out' with
conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/constraints/query70.q.out:125
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/constraints/query70.q.out' with
conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/query51.q.out:117
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/query51.q.out' with conflicts.
error: patch failed: ql/src/test/results/clientpositive/perf/tez/query70.q.out:125
Falling back to three-way merge...
Applied patch to 'ql/src/test/results/clientpositive/perf/tez/query70.q.out' with conflicts.
U ql/src/test/results/clientpositive/llap/semijoin.q.out
U ql/src/test/results/clientpositive/llap/vector_leftsemi_mapjoin.q.out
U ql/src/test/results/clientpositive/perf/tez/constraints/query51.q.out
U ql/src/test/results/clientpositive/perf/tez/constraints/query70.q.out
U ql/src/test/results/clientpositive/perf/tez/query51.q.out
U ql/src/test/results/clientpositive/perf/tez/query70.q.out
warning: squelched 40 whitespace errors
warning: 45 lines add whitespace errors.
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-21357
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12998300 - PreCommit-HIVE-Build

> PK/FK stat rescale doesn't work in some cases
> ---------------------------------------------
>
>                 Key: HIVE-23082
>                 URL: https://issues.apache.org/jira/browse/HIVE-23082
>             Project: Hive
>          Issue Type: Bug
>          Components: Statistics
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>         Attachments: HIVE-23082.01.patch, HIVE-23082.02.patch
>
>
> As a result in Joins may retain the original estimate; see MAPJOIN_33 in this plan ;
which retained the estimate of SEL_32
> {code}
> +----------------------------------------------------+
> |                      Explain                       |
> +----------------------------------------------------+
> | Plan optimized by CBO.                             |
> |                                                    |
> | Vertex dependency in root stage                    |
> | Map 1 <- Map 2 (BROADCAST_EDGE)                    |
> |                                                    |
> | Stage-0                                            |
> |   Fetch Operator                                   |
> |     limit:12                                       |
> |     Stage-1                                        |
> |       Map 1 vectorized                             |
> |       File Output Operator [FS_36]                 |
> |         Limit [LIM_35] (rows=12 width=4)           |
> |           Number of rows:12                        |
> |           Select Operator [SEL_34] (rows=5040 width=4) |
> |             Output:["_col0"]                       |
> |             Map Join Operator [MAPJOIN_33] (rows=5040 width=8) |
> |               Conds:SEL_32._col0=RS_30._col0(Inner) |
> |             <-Map 2 [BROADCAST_EDGE] vectorized    |
> |               BROADCAST [RS_30]                    |
> |                 PartitionCols:_col0                |
> |                 Select Operator [SEL_29] (rows=1 width=8) |
> |                   Output:["_col0"]                 |
> |                   Filter Operator [FIL_28] (rows=1 width=108) |
> |                     predicate:((r_reason_id = 'reason 66') and r_reason_sk is not null)
|
> |                     TableScan [TS_3] (rows=2 width=108) |
> |                       default@rx0,reason,Tbl:COMPLETE,Col:COMPLETE,Output:["r_reason_id","r_reason_sk"]
|
> |             <-Select Operator [SEL_32] (rows=5040 width=7) |
> |                 Output:["_col0"]                   |
> |                 Filter Operator [FIL_31] (rows=5040 width=7) |
> |                   predicate:sr_reason_sk is not null |
> |                   TableScan [TS_0] (rows=5112 width=7) |
> |                     default@sr0,store_returns,Tbl:COMPLETE,Col:COMPLETE,Output:["sr_reason_sk"]
|
> |                                                    |
> +----------------------------------------------------+
> {code}
> repro:
> {code}
> set hive.query.results.cache.enabled=false;
> set hive.explain.user=true;
> drop table if exists default.rx0;
> drop table if exists default.sr0;
> create table rx0 (r_reason_id string, r_reason_sk bigint);
> create table sr0 (sr_reason_sk bigint);
> insert into rx0 values ('AAAAAAAAAAAAAAAA',1),('AAAAAAAAGEAAAAAA',70);
> insert into sr0 values (NULL),(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),
> (11),(12),(13),(14),(15),(16),(17),(18),(19),(20),(21),(22),(23),(24),(25),
> (26),(27),(28),(29),(30),(31),(32),(33),(34),(35),(36),(37),(38),(39),(40),
> (41),(42),(43),(44),(45),(46),(47),(48),(49),(50),(51),(52),(53),(54),(55),
> (56),(57),(58),(59),(60),(61),(62),(63),(64),(65),(66),(67),(68),(69),(70);
> insert into sr0 select a.* from sr0 a,sr0 b;
> -- |sr0| ~ 5112
> explain select 1
> from default.sr0  store_returns , default.rx0 reason
>             where sr_reason_sk = r_reason_sk
>               and r_reason_id = 'reason 66'
> limit 12;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message