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

Hive QA commented on HIVE-22263:
--------------------------------



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

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

{color:green}SUCCESS:{color} +1 due to 17993 tests passed

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

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
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12993225 - PreCommit-HIVE-Build

> MV has distinct on columns and query has count(distinct) on one of the 
> columns, we do not trigger rewriting
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-22263
>                 URL: https://issues.apache.org/jira/browse/HIVE-22263
>             Project: Hive
>          Issue Type: Sub-task
>          Components: CBO, Materialized views
>    Affects Versions: 3.1.2
>            Reporter: Steve Carlin
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Critical
>         Attachments: HIVE-22263.patch, count-distinct.sql, count-distinct2.sql
>
>
> Count distinct issues with materialized views.  Two scripts attached
> 1) 
> create materialized view base_aview stored as orc as select distinct c1 c1, 
> c2 c2 from base;
> explain extended select count(distinct c1) from base group by c2 ;
> 2)
> create materialized view base_aview stored as orc as SELECT c1 c1, c2 c2, 
> sum(c2) FROM base group by 1,2;
> explain extended select count(distinct c1) from base group by c2;



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

Reply via email to