MrDLontheway commented on code in PR #38893:
URL: https://github.com/apache/spark/pull/38893#discussion_r1043227501
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -639,6 +639,26 @@ object RemoveNoopOperators extends Rule[LogicalPlan] {
}
}
+/**
+ * Merge case condition expression with same value.
+ */
+object MergeConditionWithValue extends Rule[LogicalPlan] {
Review Comment:
this is 2000 branches run time
<img width="1260" alt="image"
src="https://user-images.githubusercontent.com/29403543/206430556-08ffe134-2d3e-48ab-bdb1-d941957869e1.png">
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]