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

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

                Author: ASF GitHub Bot
            Created on: 07/Jan/21 08:11
            Start Date: 07/Jan/21 08:11
    Worklog Time Spent: 10m 
      Work Description: mustafaiman commented on a change in pull request #1824:
URL: https://github.com/apache/hive/pull/1824#discussion_r553168379



##########
File path: ql/src/test/results/clientpositive/llap/auto_sortmerge_join_14.q.out
##########
@@ -194,7 +222,7 @@ STAGE PLANS:
                       keys:
                         0 _col0 (type: int)
                         1 _col0 (type: int)
-                      Statistics: Num rows: 221 Data size: 1768 Basic stats: 
COMPLETE Column stats: COMPLETE
+                      Statistics: Num rows: 220 Data size: 1760 Basic stats: 
COMPLETE Column stats: COMPLETE

Review comment:
       Yes, before the patch distinct count on tbl2_n6 was miscalculated. 
Running the modified test before the patch reveals that distinct count on `key` 
was calculated wrong.
   ```
   describe formatted tbl2_n6 key;
   select count (distinct key) from tbl2_n6;
   ```
   
   
   ```
   POSTHOOK: Input: default@tbl2_n6
   col_name             key                 
   data_type            int                 
   min                  0                   
   max                  199                 
   num_nulls            0                   
   distinct_count       117                 
   avg_col_len                              
   max_col_len                              
   num_trues                                
   num_falses                               
   bit_vector           HL                  
   comment              from deserializer   
   COLUMN_STATS_ACCURATE        
{\"BASIC_STATS\":\"true\",\"COLUMN_STATS\":{\"key\":\"true\",\"value\":\"true\"}}
   ...
   POSTHOOK: query: select count (distinct key) from tbl2_n6
   ...
   121
   ```
   
   After the patch distinct count is correct. So the stats in the following 
query is correct now.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 532315)
    Time Spent: 50m  (was: 40m)

> Vectorize compute_bit_vector
> ----------------------------
>
>                 Key: HIVE-24510
>                 URL: https://issues.apache.org/jira/browse/HIVE-24510
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Mustafa İman
>            Assignee: Mustafa İman
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> After https://issues.apache.org/jira/browse/HIVE-23530 , almost all compute 
> stats functions are vectorizable. Only function that is not vectorizable is 
> "compute_bit_vector" for ndv statistics computation. This causes "create 
> table as select" and "insert overwrite select" queries to run in 
> non-vectorized mode. 
> Even a very naive implementation of vectorized compute_bit_vector gives about 
> 50% performance improvement on simple "insert overwrite select" queries. That 
> is because entire mapper or reducer can run in vectorized mode.
>  



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

Reply via email to