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

Hive QA commented on HIVE-22163:
--------------------------------



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

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

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 16733 tests 
executed
*Failed tests:*
{noformat}
TestMiniLlapLocalCliDriver - did not produce a TEST-*.xml file (likely timed 
out) (batchId=180)
        
[vector_interval_2.q,schema_evol_orc_acid_table_update.q,stats_date.q,metadataonly1.q,materialized_view_rewrite_10.q,vectorization_div0.q,auto_join_nulls.q,insert1_overwrite_partitions.q,schema_evol_text_nonvec_part_all_complex.q,orc_schema_evol_quoted.q,alter_merge_orc.q,vector_between_columns.q,vector_groupby_grouping_sets6.q,udaf_collect_set_2.q,update_after_multiple_inserts.q,offset_limit_ppd_optimizer.q,materialized_view_describe.q,orc_merge_incompat1.q,vectorized_parquet_types.q,vector_windowing_gby2.q,empty_array.q,results_cache_1.q,vector_identity_reuse.q,schema_evol_text_vecrow_part_all_complex_llap_io.q,external_jdbc_table4.q,schema_evol_orc_acidvec_part.q,materialized_view_create_rewrite_multi_db.q,acid_no_buckets.q,auto_sortmerge_join_9.q,vector_groupby_grouping_id2.q]
{noformat}

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

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

This message is automatically generated.

ATTACHMENT ID: 12980530 - PreCommit-HIVE-Build

> CBO: Enabling CBO turns on stats estimation, even when the estimation is 
> disabled
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-22163
>                 URL: https://issues.apache.org/jira/browse/HIVE-22163
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO
>            Reporter: Gopal V
>            Assignee: Krisztian Kasa
>            Priority: Major
>         Attachments: HIVE-22163.1.patch, HIVE-22163.1.patch, 
> HIVE-22163.1.patch, HIVE-22163.2.patch, HIVE-22163.3.patch, 
> HIVE-22163.4.patch, HIVE-22163.4.patch, HIVE-22163.5.patch, 
> HIVE-22163.5.patch, HIVE-22163.5.patch, HIVE-22163.5.patch, HIVE-22163.5.patch
>
>
> {code}
> create table claims(claim_rec_id bigint, claim_invoice_num string, typ_c int);
> alter table claims update statistics set 
> ('numRows'='1154941534','rawDataSize'='1135307527922');
> set hive.stats.estimate=false;
> explain extended select count(1) from claims where typ_c=3;
> set hive.stats.ndv.estimate.percent=5e-7;
> explain extended select count(1) from claims where typ_c=3;
> {code}
> Expecting the standard /2 for the single filter, but we instead get 5 rows.
> {code}
> '            Map Operator Tree:'
> '                TableScan'
> '                  alias: claims'
> '                  filterExpr: (typ_c = 3) (type: boolean)'
> '                  Statistics: Num rows: 1154941534 Data size: 4388777832 
> Basic stats: COMPLETE Column stats: NONE'
> '                  GatherStats: false'
> '                  Filter Operator'
> '                    isSamplingPred: false'
> '                    predicate: (typ_c = 3) (type: boolean)'
> '                    Statistics: Num rows: 5 Data size: 19 Basic stats: 
> COMPLETE Column stats: NONE'
> {code}
> The estimation is in effect, as changing the estimate.percent changes this.
> {code}
> '                  filterExpr: (typ_c = 3) (type: boolean)'
> '                  Statistics: Num rows: 1154941534 Data size: 4388777832 
> Basic stats: COMPLETE Column stats: NONE'
> '                  GatherStats: false'
> '                  Filter Operator'
> '                    isSamplingPred: false'
> '                    predicate: (typ_c = 3) (type: boolean)'
> '                    Statistics: Num rows: 230988307 Data size: 877755567 
> Basic stats: COMPLETE Column stats: NONE'
> {code}



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

Reply via email to