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

Reserve all non-deterministic expressions in ExpressionSet.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • SQL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: