Description
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 make sure they are comparable.
For IN single value PPD evaluation this baseObject normalization is missing leading to ClassCastException:
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)