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

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

                Author: ASF GitHub Bot
            Created on: 05/Feb/21 09:58
            Start Date: 05/Feb/21 09:58
    Worklog Time Spent: 10m 
      Work Description: pgaref opened a new pull request #1943:
URL: https://github.com/apache/hive/pull/1943


   ### What changes were proposed in this pull request?
   Timestamp PPD Test with nanosecond precision
   
   
   ### Why are the changes needed?
   Nanosecond precision timestamps where not supported prior to ORC-1.6 thus we 
need to add some tests
   
   ### Does this PR introduce _any_ user-facing change?
   Np
   
   
   ### How was this patch tested?
   orc_ppd_timestamp_precision.q
   


----------------------------------------------------------------
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: 548236)
    Time Spent: 50m  (was: 40m)

> ORC PPD eval with sub-millisecond timestamps
> --------------------------------------------
>
>                 Key: HIVE-23036
>                 URL: https://issues.apache.org/jira/browse/HIVE-23036
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Panagiotis Garefalakis
>            Assignee: Panagiotis Garefalakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> See [ORC-611|https://issues.apache.org/jira/browse/ORC-611] for more details
> ORC stores timestamps with:
>  - nanosecond precision for the data itself
>  - milliseconds precision for min-max statistics
> As both min and max are rounded to the same value,  timestamps with ns 
> precision will not pass the PPD evaluator.
> {code:java}
> create table tsstat (ts timestamp) stored as orc;
> insert into tsstat values ("1970-01-01 00:00:00.0005");
> select * from tsstat where ts = "1970-01-01 00:00:00.0005";
> -- returned 0 rows{code}
> ORC PPD evaluation currently happens as part of OrcInputFormat 
> [https://github.com/apache/hive/blob/7e39a2c13711f9377c9ce1edb4224880421b1ea5/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java#L2314]



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

Reply via email to