orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Jayachandran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-370) ORC PPD evaluation for date should use DateWritable
Date Wed, 30 May 2018 19:25:00 GMT
Prasanth Jayachandran created ORC-370:

             Summary: ORC PPD evaluation for date should use DateWritable
                 Key: ORC-370
                 URL: https://issues.apache.org/jira/browse/ORC-370
             Project: ORC
          Issue Type: Bug
    Affects Versions: 1.5.1, 1.4.4
            Reporter: Prasanth Jayachandran
            Assignee: Prasanth Jayachandran

ORC PPD evaluation for Date type uses java.sql.Date for min/max comparison.
Date.compareTo uses millis offset which can return incorrect results depending on the timezone.

Running the testcase in HIVE-19726 passed in Los Angeles but failed in Paris as Date.compareTo
return 0 for Los Angeles but returned -1 for Paris. 

Similar to bloomfilter, min/max evaluation should use DateWritable (as DateWritable.compareTo
uses days offset). 

This message was sent by Atlassian JIRA

View raw message