You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Panagiotis Garefalakis (Jira)" <ji...@apache.org> on 2021/01/10 21:15:00 UTC

[jira] [Assigned] (ORC-724) PPD: Date IN single value comparison throws ClassCastException

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

Panagiotis Garefalakis reassigned ORC-724:
------------------------------------------


> PPD: Date IN single value comparison throws ClassCastException
> --------------------------------------------------------------
>
>                 Key: ORC-724
>                 URL: https://issues.apache.org/jira/browse/ORC-724
>             Project: ORC
>          Issue Type: Bug
>            Reporter: Panagiotis Garefalakis
>            Assignee: Panagiotis Garefalakis
>            Priority: Major
>
> PPD evaluation: after moving to LocalDate and day of epoch instead of java's Date for column statistics in ORC-661 we need to convert Date predicates [to a common type |https://github.com/apache/orc/blob/1d9a289af780c1b35f72269012546d892cf91e14/java/core/src/java/org/apache/orc/impl/RecordReaderImpl.java#L823]make sure they are comparable.
> For IN single value PPD evaluation this baseObject [normalization is missing|https://github.com/apache/orc/blob/1d9a289af780c1b35f72269012546d892cf91e14/java/core/src/java/org/apache/orc/impl/RecordReaderImpl.java#L672] leading to ClassCastException:
> {code:java}
> java.lang.ClassCastException: java.time.LocalDate cannot be cast to java.util.Date at java.util.Date.compareTo(Date.java:131) at org.apache.orc.impl.RecordReaderImpl$ValueRange.compare(RecordReaderImpl.java:356)	at org.apache.orc.impl.RecordReaderImpl.evaluatePredicateMinMax(RecordReaderImpl.java:674) at org.apache.orc.impl.RecordReaderImpl.evaluatePredicateRange(RecordReaderImpl.java:602 at org.apache.orc.impl.RecordReaderImpl.evaluatePredicate(RecordReaderImpl.java:581) at org.apache.orc.impl.RecordReaderImpl.evaluatePredicate(RecordReaderImpl.java:560)
> at org.apache.orc.impl.TestRecordReaderImpl.testIntTypeConversion(TestRecordReaderImpl.java:1095)
> {code}



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