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

Support `java.time.Instant` in Parquet filter pushdown

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.1.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Currently, ParquetFilters supports only java.sql.Timestamp values of TimestampType, and explicitly casts Any to java.sql.Timestamp, see
      https://github.com/apache/spark/blob/cb0db213736de5c5c02b09a2d5c3e17254708ce1/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilters.scala#L180

      So, any filters refer to timestamp values are not pushed down to Parquet when spark.sql.datetime.java8API.enabled is true.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: