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-16811) Estimate statistics in absence of stats
Date Sat, 26 Aug 2017 03:15:01 GMT

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

Hive QA commented on HIVE-16811:
--------------------------------



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

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

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

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'
2017-08-26 03:14:48.551
+ [[ -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-6551/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'
2017-08-26 03:14:48.554
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 262d8f9 HIVE-17392: SharedWorkOptimizer might merge TS operators filtered by
not equivalent semijoin operators (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)
+ git clean -f -d
Removing metastore/scripts/upgrade/derby/045-HIVE-16886.derby.sql
Removing metastore/scripts/upgrade/mssql/030-HIVE-16886.mssql.sql
Removing metastore/scripts/upgrade/mysql/045-HIVE-16886.mysql.sql
Removing metastore/scripts/upgrade/oracle/045-HIVE-16886.oracle.sql
Removing metastore/scripts/upgrade/postgres/044-HIVE-16886.postgres.sql
Removing metastore/src/java/org/apache/hadoop/hive/metastore/tools/SQLGenerator.java
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at 262d8f9 HIVE-17392: SharedWorkOptimizer might merge TS operators filtered by
not equivalent semijoin operators (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2017-08-26 03:14:52.425
+ 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
error: a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: No such file or directory
error: a/itests/src/test/resources/testconfiguration.properties: No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/RelOptHiveTable.java: No
such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java:
No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/plan/ColStatistics.java: No such file or directory
error: a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java: No such file or directory
error: a/ql/src/test/results/clientpositive/annotate_stats_filter.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/annotate_stats_groupby.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/annotate_stats_part.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/annotate_stats_select.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/annotate_stats_table.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/auto_join_reordering_values.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/auto_join_stats.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/auto_join_stats2.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/auto_sortmerge_join_12.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/cbo_rp_annotate_stats_groupby.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/columnStatsUpdateForStatsOptimizer_2.q.out: No
such file or directory
error: a/ql/src/test/results/clientpositive/explain_rearrange.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/join19.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/join42.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/join43.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/join_cond_pushdown_unqual1.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/join_cond_pushdown_unqual2.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/join_cond_pushdown_unqual3.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/join_cond_pushdown_unqual4.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/join_hive_626.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/join_star.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/acid_bucket_pruning.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/auto_smb_mapjoin_14.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_1.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_10.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_11.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_12.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_13.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_14.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_15.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_2.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_3.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_4.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_5.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_6.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_7.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_8.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/auto_sortmerge_join_9.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/bucket_groupby.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucket_map_join_tez1.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/bucket_map_join_tez2.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/bucketmapjoin1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketmapjoin2.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketmapjoin3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketmapjoin4.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketmapjoin7.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketpruning1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketsortoptimize_insert_2.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketsortoptimize_insert_6.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/bucketsortoptimize_insert_7.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/columnStatsUpdateForStatsOptimizer_1.q.out:
No such file or directory
error: a/ql/src/test/results/clientpositive/llap/column_access_stats.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/column_table_stats.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/column_table_stats_orc.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/constprog_dpp.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/constprog_semijoin.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/correlationoptimizer4.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/count.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/cross_product_check_1.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/cross_product_check_2.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/cte_3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/cte_5.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/cte_mat_3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/cte_mat_4.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/cte_mat_5.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/disable_merge_for_bucketing.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynamic_partition_pruning.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynamic_partition_pruning_2.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynamic_semijoin_reduction_2.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynamic_semijoin_reduction_3.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynpart_sort_opt_vectorization.q.out: No
such file or directory
error: a/ql/src/test/results/clientpositive/llap/dynpart_sort_optimization.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynpart_sort_optimization2.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/dynpart_sort_optimization_acid.q.out: No
such file or directory
error: a/ql/src/test/results/clientpositive/llap/empty_join.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/except_distinct.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/explainuser_1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/explainuser_2.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/filter_join_breaktask.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/hybridgrace_hashjoin_1.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/insert1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/insert_into1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/intersect_all.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/intersect_distinct.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/intersect_merge.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/jdbc_handler.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/join46.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/join_emit_interval.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/join_is_not_distinct_from.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/join_nullsafe.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/lateral_view.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/llap_nullscan.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/llap_partitioned.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/llap_smb.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/llap_stats.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/llap_udf.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/llapdecider.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/lvj_mapjoin.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/mapjoin3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/mapjoin46.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/mapjoin_decimal.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/mapjoin_emit_interval.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/merge1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/merge2.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/mergejoin.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/metadata_only_queries.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/multiMapJoin1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/multiMapJoin2.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/multi_count_distinct_null.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/multi_insert_lateral_view.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/optimize_nullscan.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/orc_llap_nonvector.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge4.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge5.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge6.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge7.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge_incompat1.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/orc_merge_incompat2.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/orc_predicate_pushdown.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/parquet_predicate_pushdown.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/partition_shared_scan.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/ppd_union_view.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/ptf_matchpath.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/rcfile_createas1.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/rcfile_merge3.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/rcfile_merge4.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/reduce_deduplicate.q.out: No such file or
directory
error: a/ql/src/test/results/clientpositive/llap/reduce_deduplicate_distinct.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/sample10.q.out: No such file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_nonvec_part.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_nonvec_part_all_complex.q.out:
No such file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_nonvec_part_all_primitive.q.out:
No such file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_nonvec_table.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_vec_part.q.out: No such file
or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_vec_part_all_complex.q.out:
No such file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_vec_part_all_primitive.q.out:
No such file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_orc_vec_table.q.out: No such
file or directory
error: a/ql/src/test/results/clientpositive/llap/schema_evol_text_nonvec_part.q.out: No such
file or directory
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12883837 - PreCommit-HIVE-Build

> Estimate statistics in absence of stats
> ---------------------------------------
>
>                 Key: HIVE-16811
>                 URL: https://issues.apache.org/jira/browse/HIVE-16811
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>         Attachments: HIVE-16811.1.patch, HIVE-16811.2.patch, HIVE-16811.3.patch, HIVE-16811.4.patch,
HIVE-16811.5.patch, HIVE-16811.6.patch, HIVE-16811.7.patch, HIVE-16811.8.patch
>
>
> Currently Join ordering completely bails out in absence of statistics and this could
lead to bad joins such as cross joins.
> e.g. following select query will produce cross join.
> {code:sql}
> create table supplier (S_SUPPKEY INT, S_NAME STRING, S_ADDRESS STRING, S_NATIONKEY INT,

> S_PHONE STRING, S_ACCTBAL DOUBLE, S_COMMENT STRING)
> CREATE TABLE lineitem (L_ORDERKEY      INT,
>                                 L_PARTKEY       INT,
>                                 L_SUPPKEY       INT,
>                                 L_LINENUMBER    INT,
>                                 L_QUANTITY      DOUBLE,
>                                 L_EXTENDEDPRICE DOUBLE,
>                                 L_DISCOUNT      DOUBLE,
>                                 L_TAX           DOUBLE,
>                                 L_RETURNFLAG    STRING,
>                                 L_LINESTATUS    STRING,
>                                 l_shipdate      STRING,
>                                 L_COMMITDATE    STRING,
>                                 L_RECEIPTDATE   STRING,
>                                 L_SHIPINSTRUCT  STRING,
>                                 L_SHIPMODE      STRING,
>                                 L_COMMENT       STRING) partitioned by (dl int)
> ROW FORMAT DELIMITED
> FIELDS TERMINATED BY '|';
> CREATE TABLE part(
>     p_partkey INT,
>     p_name STRING,
>     p_mfgr STRING,
>     p_brand STRING,
>     p_type STRING,
>     p_size INT,
>     p_container STRING,
>     p_retailprice DOUBLE,
>     p_comment STRING
> );
> explain select count(1) from part,supplier,lineitem where p_partkey = l_partkey and s_suppkey
= l_suppkey;
> {code}
> Estimating stats will prevent join ordering algorithm to bail out and come up with join
at least better than cross join 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message