Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-724

PPD: Date IN single value comparison throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.6, 1.7.0
    • 1.7.0, 1.6.7
    • Java, Reader
    • None

    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)
      

      Attachments

        Activity

          People

            pgaref Panagiotis Garefalakis
            pgaref Panagiotis Garefalakis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: