Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/20246#discussion_r161368596
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
---
@@ -282,6 +282,8 @@ case class Cast(child: Expression, dataType: DataType,
timeZoneId: Option[String
builder.append("]")
builder.build()
})
+ case udt: UserDefinedType[_] =>
--- End diff --
Here?
https://github.com/apache/spark/blob/cd9f49a2aed3799964976ead06080a0f7044a0c3/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala#L608
Since we can cast UDTs to other UDTs or strings only, IIUC there is only a
place to fix?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]