You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "mihailotim-db (via GitHub)" <gi...@apache.org> on 2025/01/23 20:38:24 UTC
Re: [PR] [SPARK-50798][SQL][FOLLOWUP] Normalize expressions with random seed [spark]
mihailotim-db commented on code in PR #49623:
URL: https://github.com/apache/spark/pull/49623#discussion_r1927649332
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/NormalizePlan.scala:
##########
@@ -41,10 +41,12 @@ object NormalizePlan extends PredicateHelper {
def normalizeExpressions(plan: LogicalPlan): LogicalPlan = {
val withNormalizedRuntimeReplaceable = normalizeRuntimeReplaceable(plan)
withNormalizedRuntimeReplaceable transformAllExpressions {
- case c: CommonExpressionDef =>
- c.copy(id = new CommonExpressionId(id = 0))
- case c: CommonExpressionRef =>
- c.copy(id = new CommonExpressionId(id = 0))
+ case commonExpressionDef: CommonExpressionDef =>
+ commonExpressionDef.copy(id = new CommonExpressionId(id = 0))
+ case commonExpressionRef: CommonExpressionRef =>
+ commonExpressionRef.copy(id = new CommonExpressionId(id = 0))
+ case expressionWithRandomSeed: ExpressionWithRandomSeed =>
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.
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