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

Parquet shouldn't fail when pushing down predicates over a column whose underlying Parquet type is an ENUM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:
    • Sprint:
      Spark 1.5 release

      Description

      Spark SQL doesn't have an equivalent data type to Parquet BINARY (ENUM), and always treats it as a UTF-8 encoded StringType. Thus, predicate over a Parquet ENUM column may be pushed down. However, Parquet 1.7.0 and prior versions only support filter push-down optimization for a limited set of data types, and fails the query.

      The simplest solution seems to be upgrading parquet-mr to 1.8.1, which fixes this issue via PARQUET-201

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lian cheng Cheng Lian
                Reporter:
                lian cheng Cheng Lian
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: