cloud-fan commented on a change in pull request #23908: [SPARK-27001][SQL]
Refactor "serializerFor" method between ScalaReflection and JavaTypeInference
URL: https://github.com/apache/spark/pull/23908#discussion_r261813081
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/encoders/ExpressionEncoder.scala
##########
@@ -195,7 +195,7 @@ case class ExpressionEncoder[T](
case r: BoundReference =>
// For input object of Product type, we can't encode it to row if
it's null, as Spark SQL
// doesn't allow top-level row to be null, only its columns can be
null.
- AssertNotNull(r, Seq("top level Product or row object"))
+ AssertNotNull(r, WalkedTypePath().recordRoot("top level Product or
row object").getPaths)
Review comment:
nit: we can keep it unchanged.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]