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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • SQL
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: