You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/04/22 00:52:02 UTC

[GitHub] [spark] sigmod opened a new pull request #32280: [WIP][SPARK-35078] Support tree traversal pruning in expression rules

sigmod opened a new pull request #32280:
URL: https://github.com/apache/spark/pull/32280


   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
     8. If you want to add or modify an error message, please read the guideline first:
        https://spark.apache.org/error-message-guidelines.html
   -->
   
   ### What changes were proposed in this pull request?
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If you fix some SQL features, you can provide some references of other DBMSes.
     3. If there is design documentation, please add the link.
     4. If there is a discussion in the mailing list, please add the link.
   -->
   
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
   If no, write 'No'.
   -->
   
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] gengliangwang commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825495849


   Thanks, merging to master


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824541697


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137757/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825274305


   **[Test build #137819 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137819/testReport)** for PR 32280 at commit [`e9fec51`](https://github.com/apache/spark/commit/e9fec514ba6fe42173b722e393f2ebdfae08b751).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824566830


   **[Test build #137780 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137780/testReport)** for PR 32280 at commit [`3083338`](https://github.com/apache/spark/commit/3083338771ad16b20d06da44045bed3a45f24d19).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824746738


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42324/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] sigmod commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
sigmod commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825308281


   @hvanhovell @gengliangwang @maryannxue @dbaliafroozeh this PR is ready for review. Let me know if I missed anything.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824634549


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42309/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825114592


   **[Test build #137819 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137819/testReport)** for PR 32280 at commit [`e9fec51`](https://github.com/apache/spark/commit/e9fec514ba6fe42173b722e393f2ebdfae08b751).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824645139


   **[Test build #137795 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137795/testReport)** for PR 32280 at commit [`549d976`](https://github.com/apache/spark/commit/549d97661ef73ba1d98057ce497ab607910566d3).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] gengliangwang commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618936104



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
##########
@@ -740,8 +751,10 @@ object NullPropagation extends Rule[LogicalPlan] {
     case _ => false
   }
 
-  def apply(plan: LogicalPlan): LogicalPlan = plan transform {
-    case q: LogicalPlan => q transformExpressionsUp {
+  def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+    _.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT, CAST), ruleId) {

Review comment:
       OK. ​I think now developers need to spend extra effort on choosing the Bits here.  And there seems no good solution for avoiding regressions except for asking developers to add more unit tests.
   Do you have any idea to improve the framework for this?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824887146


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137795/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825145540






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] sigmod commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
sigmod commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618930570



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
##########
@@ -740,8 +751,10 @@ object NullPropagation extends Rule[LogicalPlan] {
     case _ => false
   }
 
-  def apply(plan: LogicalPlan): LogicalPlan = plan transform {
-    case q: LogicalPlan => q transformExpressionsUp {
+  def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+    _.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT, CAST), ruleId) {

Review comment:
       I tried to capture the first case:
    case e @ WindowExpression(Cast(Literal(0L, _), _, _), _)
   
   I'm not sure why this pattern is related to NullPropagation, but that seems a separate issue.
   I updated the condition to be more restrictive since CAST may be common in certain queries:
   
   t.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT)
           || t.containsAllPatterns(WINDOW_EXPRESSION, CAST, LITERAL)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825415446


   **[Test build #137846 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137846/testReport)** for PR 32280 at commit [`cd1d9ef`](https://github.com/apache/spark/commit/cd1d9ef4e0e89dd28509d6a2036b92b240792694).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825313306


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137823/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825442128


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42376/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825502232


   **[Test build #137844 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137844/testReport)** for PR 32280 at commit [`bc6c103`](https://github.com/apache/spark/commit/bc6c103f134e5061d454b206573490d1b8e432c9).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824764337


   **[Test build #137780 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137780/testReport)** for PR 32280 at commit [`3083338`](https://github.com/apache/spark/commit/3083338771ad16b20d06da44045bed3a45f24d19).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824887146


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137795/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824538403


   **[Test build #137757 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137757/testReport)** for PR 32280 at commit [`5a09050`](https://github.com/apache/spark/commit/5a0905074c11c771da0d844c9efb8627f26f80e4).
    * This patch **fails Spark unit tests**.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825152032


   **[Test build #137823 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137823/testReport)** for PR 32280 at commit [`63df6ca`](https://github.com/apache/spark/commit/63df6ca258498fb58340f98ddc12ca209ae5126c).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825151834


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42349/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078] Support tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824463605


   **[Test build #137757 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137757/testReport)** for PR 32280 at commit [`5a09050`](https://github.com/apache/spark/commit/5a0905074c11c771da0d844c9efb8627f26f80e4).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824782699


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137780/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825289357


   **[Test build #137823 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137823/testReport)** for PR 32280 at commit [`63df6ca`](https://github.com/apache/spark/commit/63df6ca258498fb58340f98ddc12ca209ae5126c).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825152032


   **[Test build #137823 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137823/testReport)** for PR 32280 at commit [`63df6ca`](https://github.com/apache/spark/commit/63df6ca258498fb58340f98ddc12ca209ae5126c).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825585514


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137846/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824483919


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42284/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825313306


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137823/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824645139


   **[Test build #137795 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137795/testReport)** for PR 32280 at commit [`549d976`](https://github.com/apache/spark/commit/549d97661ef73ba1d98057ce497ab607910566d3).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] gengliangwang commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618925238



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
##########
@@ -29,7 +29,7 @@ import org.apache.spark.sql.catalyst.plans._
 import org.apache.spark.sql.catalyst.plans.physical.{HashPartitioning, Partitioning, RangePartitioning, RoundRobinPartitioning, SinglePartition}
 import org.apache.spark.sql.catalyst.trees.TreeNodeTag
 import org.apache.spark.sql.catalyst.trees.TreePattern.{
-  INNER_LIKE_JOIN, JOIN, LEFT_SEMI_OR_ANTI_JOIN, NATURAL_LIKE_JOIN, OUTER_JOIN, TreePattern
+  FILTER, INNER_LIKE_JOIN, JOIN, LEFT_SEMI_OR_ANTI_JOIN, NATURAL_LIKE_JOIN, OUTER_JOIN, TreePattern

Review comment:
       nit:
   import org.apache.spark.sql.catalyst.trees.TreePattern._




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825520267


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137844/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] sigmod commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
sigmod commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618930030



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
##########
@@ -29,7 +29,7 @@ import org.apache.spark.sql.catalyst.plans._
 import org.apache.spark.sql.catalyst.plans.physical.{HashPartitioning, Partitioning, RangePartitioning, RoundRobinPartitioning, SinglePartition}
 import org.apache.spark.sql.catalyst.trees.TreeNodeTag
 import org.apache.spark.sql.catalyst.trees.TreePattern.{
-  INNER_LIKE_JOIN, JOIN, LEFT_SEMI_OR_ANTI_JOIN, NATURAL_LIKE_JOIN, OUTER_JOIN, TreePattern
+  FILTER, INNER_LIKE_JOIN, JOIN, LEFT_SEMI_OR_ANTI_JOIN, NATURAL_LIKE_JOIN, OUTER_JOIN, TreePattern

Review comment:
       Done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825376862


   **[Test build #137844 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137844/testReport)** for PR 32280 at commit [`bc6c103`](https://github.com/apache/spark/commit/bc6c103f134e5061d454b206573490d1b8e432c9).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824734815






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824615022






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825151834


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42349/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825572450


   **[Test build #137846 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137846/testReport)** for PR 32280 at commit [`cd1d9ef`](https://github.com/apache/spark/commit/cd1d9ef4e0e89dd28509d6a2036b92b240792694).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824475710


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42284/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825156015


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42353/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825392156


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42374/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825392139






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825392156


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42374/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825279820


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137819/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824478958


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42284/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825114592


   **[Test build #137819 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137819/testReport)** for PR 32280 at commit [`e9fec51`](https://github.com/apache/spark/commit/e9fec514ba6fe42173b722e393f2ebdfae08b751).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825156015


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42353/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] gengliangwang closed pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
gengliangwang closed pull request #32280:
URL: https://github.com/apache/spark/pull/32280


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824746738


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42324/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825520267


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137844/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825279820


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137819/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] sigmod commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
sigmod commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618944025



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
##########
@@ -740,8 +751,10 @@ object NullPropagation extends Rule[LogicalPlan] {
     case _ => false
   }
 
-  def apply(plan: LogicalPlan): LogicalPlan = plan transform {
-    case q: LogicalPlan => q transformExpressionsUp {
+  def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+    _.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT, CAST), ruleId) {

Review comment:
       >> seems no good solution for avoiding regressions except for asking developers to add more unit tests
   
   - For an existing rule that we're adding this pruning, yes, we need to be careful, particularly when a rule has complex case patterns, although many rules are simple and intuitive.
   
   - For a new rule or a new case branch in an existing rule, it seems that the regression risk doesn't change much? if a case pattern branch is not covered by unit tests, there's also a regression risk even without bits pruning, e.g., the case pattern could be wrong too. 
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825415446


   **[Test build #137846 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137846/testReport)** for PR 32280 at commit [`cd1d9ef`](https://github.com/apache/spark/commit/cd1d9ef4e0e89dd28509d6a2036b92b240792694).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] sigmod commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
sigmod commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618930570



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
##########
@@ -740,8 +751,10 @@ object NullPropagation extends Rule[LogicalPlan] {
     case _ => false
   }
 
-  def apply(plan: LogicalPlan): LogicalPlan = plan transform {
-    case q: LogicalPlan => q transformExpressionsUp {
+  def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+    _.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT, CAST), ruleId) {

Review comment:
       I tried to capture the first case:
    case e @ WindowExpression(Cast(Literal(0L, _), _, _), _)
   
   I'm not sure why this pattern is related to NullPropagation, but it probably deserve a separate change.
   I updated the condition to be more restrictive since CAST may be common in certain queries:
   
   t.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT)
           || t.containsAllPatterns(WINDOW_EXPRESSION, CAST, LITERAL)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825376862


   **[Test build #137844 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137844/testReport)** for PR 32280 at commit [`bc6c103`](https://github.com/apache/spark/commit/bc6c103f134e5061d454b206573490d1b8e432c9).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825444944


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42376/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824782699


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137780/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824634549


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42309/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825444944


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42376/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824885073


   **[Test build #137795 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137795/testReport)** for PR 32280 at commit [`549d976`](https://github.com/apache/spark/commit/549d97661ef73ba1d98057ce497ab607910566d3).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824541697


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137757/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825155962






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824463605


   **[Test build #137757 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137757/testReport)** for PR 32280 at commit [`5a09050`](https://github.com/apache/spark/commit/5a0905074c11c771da0d844c9efb8627f26f80e4).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32280: [WIP][SPARK-35078] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824483919


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42284/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825585514


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137846/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] sigmod commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
sigmod commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618930570



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
##########
@@ -740,8 +751,10 @@ object NullPropagation extends Rule[LogicalPlan] {
     case _ => false
   }
 
-  def apply(plan: LogicalPlan): LogicalPlan = plan transform {
-    case q: LogicalPlan => q transformExpressionsUp {
+  def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+    _.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT, CAST), ruleId) {

Review comment:
       I tried to capture the first case:
    case e @ WindowExpression(Cast(Literal(0L, _), _, _), _)
   
   I'm not sure why this pattern is related to NullPropagation, but it probably deserves a separate change.
   I updated the condition to be more restrictive since CAST may be common in certain queries:
   
   t.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT)
           || t.containsAllPatterns(WINDOW_EXPRESSION, CAST, LITERAL)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32280: [WIP][SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-824566830


   **[Test build #137780 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137780/testReport)** for PR 32280 at commit [`3083338`](https://github.com/apache/spark/commit/3083338771ad16b20d06da44045bed3a45f24d19).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825439344


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42376/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] gengliangwang commented on pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #32280:
URL: https://github.com/apache/spark/pull/32280#issuecomment-825387938


   @sigmod could you resolve the conflicts?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] gengliangwang commented on a change in pull request #32280: [SPARK-35078][SQL] Add tree traversal pruning in expression rules

Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #32280:
URL: https://github.com/apache/spark/pull/32280#discussion_r618924916



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala
##########
@@ -740,8 +751,10 @@ object NullPropagation extends Rule[LogicalPlan] {
     case _ => false
   }
 
-  def apply(plan: LogicalPlan): LogicalPlan = plan transform {
-    case q: LogicalPlan => q transformExpressionsUp {
+  def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+    _.containsAnyPattern(NULL_CHECK, NULL_LITERAL, COUNT, CAST), ruleId) {

Review comment:
       Why do we need `CAST` here?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org