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

Simplify boolean equalities if one side is literal

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2, 3.2.0, 3.3.0
    • Fix Version/s: 3.3.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              kazuyukitanimura Kazuyuki Tanimura
              Reporter:
              kazuyukitanimura Kazuyuki Tanimura
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: