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 2022/07/27 09:16:01 UTC
[GitHub] [spark] beliefer opened a new pull request, #37317: [WIP][SPARK-39894][SQL] Combine the similar binary comparison in boolean expression.
beliefer opened a new pull request, #37317:
URL: https://github.com/apache/spark/pull/37317
### What changes were proposed in this pull request?
If boolean expression have two similar binary comparisons have the same symbol(e.g., >) and one side is literal and connected with `And`.
For example, `'a > 1 and 'a > 2`.
In fact, we can combine them as `'a > 2`.
The idea is compare literal value and combine them. Take the above example, because 1 < 2, so combine `'a > 1 and 'a > 2` as `'a > 2`.
This PR also considers swap binary comparison if the literal on the left of `And`.
For example, `1 < 'a and 2 < 'a` will be combined as `'a > 2` too.
### Why are the changes needed?
Simplify the binary comparisons in boolean expression.
### Does this PR introduce _any_ user-facing change?
'No'.
Just change the inner rule.
### How was this patch tested?
New test cases.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
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] github-actions[bot] commented on pull request #37317: [SPARK-39894][SQL] Combine the similar binary comparison in boolean expression.
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #37317:
URL: https://github.com/apache/spark/pull/37317#issuecomment-1304677649
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
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] beliefer commented on pull request #37317: [SPARK-39894][SQL] Combine the similar binary comparison in boolean expression.
Posted by GitBox <gi...@apache.org>.
beliefer commented on PR #37317:
URL: https://github.com/apache/spark/pull/37317#issuecomment-1198064228
ping @MaxGekk @gengliangwang @dongjoon-hyun cc @cloud-fan
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
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] github-actions[bot] closed pull request #37317: [SPARK-39894][SQL] Combine the similar binary comparison in boolean expression.
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #37317: [SPARK-39894][SQL] Combine the similar binary comparison in boolean expression.
URL: https://github.com/apache/spark/pull/37317
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
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