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

Simplify boolean equalities if one side is literal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      The following query does not push down the filter 

      ```

      SELECT * FROM t WHERE (a AND b) = true

      ```

      although the following equivalent query pushes down the filter as expected.

      ```

      SELECT * FROM t WHERE (a AND b) 

      ```

      Attachments

        Activity

          People

            kazuyukitanimura Kazuyuki Tanimura
            kazuyukitanimura Kazuyuki Tanimura
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: