Github user drubbo commented on a diff in the pull request: https://github.com/apache/spark/pull/6193#discussion_r31501082 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/types/UserDefinedType.scala --- @@ -53,7 +53,12 @@ abstract class UserDefinedType[UserType] extends DataType with Serializable { */ def serialize(obj: Any): Any - /** Convert a SQL datum to the user type */ + /** + * Convert a SQL datum to the user type + * + * This method may be called with an already deserialized datum, so it should be able to + * handle values of UserType too. + */ --- End diff -- I think it's related to https://issues.apache.org/jira/browse/SPARK-7186
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org