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

Reorder filter/join predicates to short-circuit isNotNull checks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL
    • None

    Description

      If a filter predicate or a join condition consists of `IsNotNull` checks, we should reorder these checks such that these non-nullability checks are evaluated before the rest of the predicates.

      For e.g., if a filter predicate is of the form `a > 5 && isNotNull(b)`, we should rewrite this as `isNotNull(b) && a > 5` during physical plan generation.

      cc nongli yhuai

      Attachments

        Activity

          People

            sameerag Sameer Agarwal
            sameerag Sameer Agarwal
            Nong Li Nong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: