[GitHub] [spark] beliefer commented on a diff in pull request #37040: [SPARK-39651][SQL] Prune filter condition if compare with rand is deterministic

2022-07-12 Thread GitBox
beliefer commented on code in PR #37040: URL: https://github.com/apache/spark/pull/37040#discussion_r918638681 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/OptimizeRand.scala: ## @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [spark] beliefer commented on a diff in pull request #37040: [SPARK-39651][SQL] Prune filter condition if compare with rand is deterministic

2022-07-11 Thread GitBox
beliefer commented on code in PR #37040: URL: https://github.com/apache/spark/pull/37040#discussion_r918590789 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/OptimizeRand.scala: ## @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [spark] beliefer commented on a diff in pull request #37040: [SPARK-39651][SQL] Prune filter condition if compare with rand is deterministic

2022-07-11 Thread GitBox
beliefer commented on code in PR #37040: URL: https://github.com/apache/spark/pull/37040#discussion_r918512433 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/OptimizeRand.scala: ## @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [spark] beliefer commented on a diff in pull request #37040: [SPARK-39651][SQL] Prune filter condition if compare with rand is deterministic

2022-07-08 Thread GitBox
beliefer commented on code in PR #37040: URL: https://github.com/apache/spark/pull/37040#discussion_r917211765 ## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala: ## @@ -470,6 +470,52 @@ object BooleanSimplification extends Rule[LogicalPlan]