You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "wankunde (via GitHub)" <gi...@apache.org> on 2023/08/21 02:47:00 UTC

[GitHub] [spark] wankunde commented on a diff in pull request #42450: [SPARK-44773][SQL] Code-gen CodegenFallback expression in WholeStageCodegen if possible

wankunde commented on code in PR #42450:
URL: https://github.com/apache/spark/pull/42450#discussion_r1299526542


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/EquivalentExpressions.scala:
##########
@@ -150,15 +150,15 @@ class EquivalentExpressions(
   //   1. CodegenFallback: it's children will not be used to generate code (call eval() instead)

Review Comment:
   No, after this change, if all the children expressions support code-gen,  we will call code-gen all its children, and then call `nullSafeEval()` to evaluate the current expression logic. Main change code `$objectTerm = (($clazz) references[$idx]).nullSafeEval(${childrenParameter});`
   https://github.com/apache/spark/pull/42450/files#diff-855822d5be236405f279207562850e426d17eb0dc3d5c83bd8db72385af602c2R49-R78



-- 
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