[ 
https://issues.apache.org/jira/browse/HIVE-25805?focusedWorklogId=699360&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-699360
 ]

ASF GitHub Bot logged work on HIVE-25805:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Dec/21 13:37
            Start Date: 21/Dec/21 13:37
    Worklog Time Spent: 10m 
      Work Description: kasakrisz merged pull request #2872:
URL: https://github.com/apache/hive/pull/2872


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 699360)
    Time Spent: 0.5h  (was: 20m)

> Wrong result when rebuilding MV with count(col) incrementally
> -------------------------------------------------------------
>
>                 Key: HIVE-25805
>                 URL: https://issues.apache.org/jira/browse/HIVE-25805
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO, Materialized views
>            Reporter: Krisztian Kasa
>            Assignee: Krisztian Kasa
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {code:java}
> create table t1(a char(15), b int) stored as orc TBLPROPERTIES 
> ('transactional'='true');
> insert into t1(a, b) values ('old', 1);
> create materialized view mat1 stored as orc TBLPROPERTIES 
> ('transactional'='true') as
> select t1.a, count(t1.b), count(*) from t1 group by t1.a;
> delete from t1 where b = 1;
> insert into t1(a,b) values
> ('new', null);
> alter materialized view mat1 rebuild;
> select * from mat1;
> {code}
> returns
> {code:java}
> new                   1       1
> {code}
> but, should be
> {code:java}
> new                   0       1
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to