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

Partially push down disjunctive predicated in Parquet/ORC

    XMLWordPrintableJSON

    Details

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

      Description

      Currently, in `ParquetFilters` and `OrcFilters`, if the child predicate of `Or` operator can't be entirely pushed down, the predicates will be thrown away.
      In fact, the conjunctive predicates under `Or` operators can be partially pushed down.
      For example, says `a` and `b` are convertible, while `c` can't be pushed down, the predicate
      `a or (b and c)`
      can be converted as
      `(a or b) and (a or c)`
      We can still push down `(a or b)`.

        Attachments

          Activity

            People

            • Assignee:
              Gengliang.Wang Gengliang Wang
              Reporter:
              Gengliang.Wang Gengliang Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: