Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-31489

Failure on pushing down filters with java.time.LocalDate values in ORC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.0.1
    • 3.0.0
    • SQL
    • None

    Description

      When spark.sql.datetime.java8API.enabled is set to true, filters pushed down with java.time.LocalDate values to ORC datasource fails with the exception:

      Wrong value class java.time.LocalDate for DATE.EQUALS leaf
      java.lang.IllegalArgumentException: Wrong value class java.time.LocalDate for DATE.EQUALS leaf
      	at org.apache.hadoop.hive.ql.io.sarg.SearchArgumentImpl$PredicateLeafImpl.checkLiteralType(SearchArgumentImpl.java:192)
      	at org.apache.hadoop.hive.ql.io.sarg.SearchArgumentImpl$PredicateLeafImpl.<init>(SearchArgumentImpl.java:75)
      	at org.apache.hadoop.hive.ql.io.sarg.SearchArgumentImpl$BuilderImpl.equals(SearchArgumentImpl.java:352)
      	at org.apache.spark.sql.execution.datasources.orc.OrcFilters$.buildLeafSearchArgument(OrcFilters.scala:229)
      

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: