cloud-fan commented on code in PR #40394: URL: https://github.com/apache/spark/pull/40394#discussion_r1134829857
########## sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUDFs.scala: ########## @@ -191,18 +157,18 @@ 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 = { + + protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = { val refTerm = ctx.addReferenceObj("this", this) Review Comment: do we still reference the entire `this`? Can we just reference the new evalautor? ########## sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUDFs.scala: ########## @@ -191,18 +157,18 @@ 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 = { + + protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = { val refTerm = ctx.addReferenceObj("this", this) Review Comment: do we still reference the entire `this`? Can we just reference the new evaluator? -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org