You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "panbingkun (via GitHub)" <gi...@apache.org> on 2023/03/09 10:47:52 UTC
[GitHub] [spark] panbingkun commented on a diff in pull request #39949: [SPARK-42386][SQL] Rewrite HiveGenericUDF with Invoke
panbingkun commented on code in PR #39949:
URL: https://github.com/apache/spark/pull/39949#discussion_r1130811640
##########
sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUDFs.scala:
##########
@@ -194,47 +183,52 @@ private[hive] case class HiveGenericUDF(
override protected def withNewChildrenInternal(newChildren: IndexedSeq[Expression]): Expression =
copy(children = newChildren)
- override protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = {
- val refTerm = ctx.addReferenceObj("this", this)
- val childrenEvals = children.map(_.genCode(ctx))
-
- val setDeferredObjects = childrenEvals.zipWithIndex.map {
Review Comment:
@cloud-fan
Should I continue to rewrite HiveSimpleUDF with Invoke
Or the pr https://github.com/apache/spark/pull/39865 is ok?
--
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