cloud-fan commented on a change in pull request #28983: URL: https://github.com/apache/spark/pull/28983#discussion_r450873817
########## File path: sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/udaf.scala ########## @@ -469,7 +471,8 @@ case class ScalaAggregator[IN, BUF, OUT]( with ImplicitCastInputTypes with Logging { - private[this] lazy val inputDeserializer = inputEncoderNR.resolveAndBind().createDeserializer() + // input encoder is resolved by ResolveEncodersInScalaAgg + private[this] lazy val inputDeserializer = inputEncoder.createDeserializer() private[this] lazy val bufferEncoder = agg.bufferEncoder.asInstanceOf[ExpressionEncoder[BUF]].resolveAndBind() Review comment: shall we do the same thing for `bufferEncoder`? we may need to put buffer encoder as a parameter of `ScalaAggregator` ---------------------------------------------------------------- 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. 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