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

Add more Not operator optimizations

    XMLWordPrintableJSON

Details

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

    Description

      BooleanSimplification should be able to do more simplifications for Not operators applying following rules

      1. Not(null) == null
        1. e.g. IsNull(Not(...)) can be IsNull(...)
      2. (Not(a) = b) == (a = Not(b))
        1. e.g. Not(...) = true can be (...) = false
      3. (a != b) == (a = Not(b))
        1. e.g. (...) != true can be (...) = false

      Attachments

        1. Pasted Graphic 3.png
          38 kB
          Anton Okolnychyi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: