hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Voros (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-20498) Support date type for column stats autogather
Date Wed, 05 Sep 2018 08:47:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-20498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Voros updated HIVE-20498:
--------------------------------
    Status: Patch Available  (was: Open)

Attached patch #1. This adds DATE to the list of supported types for autogather column stats.

> Support date type for column stats autogather
> ---------------------------------------------
>
>                 Key: HIVE-20498
>                 URL: https://issues.apache.org/jira/browse/HIVE-20498
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Statistics
>            Reporter: Zoltan Haindrich
>            Assignee: Daniel Voros
>            Priority: Major
>         Attachments: HIVE-20498.1.patch
>
>
> {code}
> set hive.stats.column.autogather=true;
> create table dx2(a int,b int,d date);
> explain insert into dx2 values(1,1,'2011-11-11');
> -- no compute_stats calls
> insert into dx2 values(1,1,'2011-11-11');
> insert into dx2 values(1,1,'2001-11-11');
> explain analyze table dx2 compute statistics for columns;
> -- as expected; has compute_stats calls
> analyze table dx2 compute statistics for columns;
> -- runs ok
> desc formatted dx2 d;
> -- looks good
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message