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

Stamatis Zampetakis commented on HIVE-29534:
--------------------------------------------

It's not necessary to attach patches from the moment that there is a PR in 
place. In the past, CI was picking up patches from the Jira case but this is no 
longer the case. There are some contribution guidelines listed in 
https://hive.apache.org/community/resources/howtocontribute/ but they may not 
be fully up to date. If you find obsolete information, like attaching patches 
to Jira, feel free to raise a PR to update the doc and ping me for review.

> Missing NDV and HLL stats for DATE/TIMESTAMP columns during optimization
> ------------------------------------------------------------------------
>
>                 Key: HIVE-29534
>                 URL: https://issues.apache.org/jira/browse/HIVE-29534
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Konstantin Bereznyakov
>            Assignee: Konstantin Bereznyakov
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 6406.patch
>
>
> StatsUtils#getColStatistics method does not fetch/update NDV and HLL stats 
> for DATE/TIMESTAMP column types from the metastore. As a result, the NDV/HLL 
> statistics for such columns is either zero or empty leading to sub-optimal 
> query plans.
> [https://github.com/apache/hive/blob/bbd83dff5bfc8b8ce018476391469da3331216dd/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java#L840]
> [https://github.com/apache/hive/blob/bbd83dff5bfc8b8ce018476391469da3331216dd/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java#L870]
> Adding this info seems to change the output of about 100 .out files



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to