Fokko commented on a change in pull request #26644: [SPARK-30004][SQL] Allow
merge UserDefinedType into a native DataType
URL: https://github.com/apache/spark/pull/26644#discussion_r350213508
##########
File path: sql/catalyst/src/test/scala/org/apache/spark/sql/types/TestUDT.scala
##########
@@ -58,4 +63,22 @@ object TestUDT {
override def equals(other: Any): Boolean =
other.isInstanceOf[MyDenseVectorUDT]
}
+
+ private[sql] class MyXMLGregorianCalendarUDT extends
UserDefinedType[XMLGregorianCalendar] {
Review comment:
No, this isn't possible since we need to override the `jvalue` to the native
DataType type. Otherwise, it will be caught by:
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala#L592
----------------------------------------------------------------
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]