hvanhovell commented on code in PR #50023: URL: https://github.com/apache/spark/pull/50023#discussion_r1970130467
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/encoders/ExpressionEncoder.scala: ########## @@ -228,7 +236,8 @@ case class ExpressionEncoder[T]( * returns true if `T` is serialized as struct and is not `Option` type. */ def isSerializedAsStructForTopLevel: Boolean = { - isSerializedAsStruct && !classOf[Option[_]].isAssignableFrom(clsTag.runtimeClass) + isSerializedAsStruct && !classOf[Option[_]].isAssignableFrom(clsTag.runtimeClass) && Review Comment: I am wondering if we should make these checks part of the AgnosticEncoder api. -- 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