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

Reserve all non-deterministic expressions in ExpressionSet.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      For non-deterministic expressions, they should be considered as not contained in the [[ExpressionSet]].

      This is consistent with how we define `semanticEquals` between two expressions.

      Otherwise, combining expressions will remove non-deterministic expressions which should be reserved.
      E.g
      Combine filters of
      ```
      testRelation.where(Rand(0) > 0.1).where(Rand(0) > 0.1)
      ```
      should result in
      ```
      testRelation.where(Rand(0) > 0.1 && Rand(0) > 0.1)
      ```

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: