You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Lefty Leverenz (JIRA)" <ji...@apache.org> on 2014/11/11 02:15:33 UTC

[jira] [Commented] (HIVE-7654) A method to extrapolate columnStats for partitions of a table

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

Lefty Leverenz commented on HIVE-7654:
--------------------------------------

Doc ping for [~pxiong]:  Should the attached documentation be put in the wiki?  (See previous comment.)

If so, this jira needs a TODOC14 label.

> A method to extrapolate columnStats for partitions of a table
> -------------------------------------------------------------
>
>                 Key: HIVE-7654
>                 URL: https://issues.apache.org/jira/browse/HIVE-7654
>             Project: Hive
>          Issue Type: New Feature
>          Components: Statistics
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: Extrapolate the Column Status.docx, HIVE-7654.0.patch, HIVE-7654.1.patch, HIVE-7654.4.patch, HIVE-7654.6.patch, HIVE-7654.7.patch, HIVE-7654.8.patch, HIVE-7654.9.patch
>
>
> In a PARTITIONED table, there are many partitions. For example, 
> create table if not exists loc_orc (
>   state string,
>   locid int,
>   zip bigint
> ) partitioned by(year string) stored as orc;
> We assume there are 4 partitions, partition(year='2000'), partition(year='2001'), partition(year='2002') and partition(year='2003').
> We can use the following command to compute statistics for columns state,locid of partition(year='2001')
> analyze table loc_orc partition(year='2001') compute statistics for columns state,locid;
> We need to know the “aggregated” column status for the whole table loc_orc. However, we may not have the column status for some partitions, e.g., partition(year='2002') and also we may not have the column status for some columns, e.g., zip bigint for partition(year='2001')
> We propose a method to extrapolate the missing column status for the partitions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)