[
https://issues.apache.org/jira/browse/SPARK-32828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17193595#comment-17193595
]
Apache Spark commented on SPARK-32828:
--------------------------------------
User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/29714
> Cast from a derived user-defined type to a base type
> ----------------------------------------------------
>
> Key: SPARK-32828
> URL: https://issues.apache.org/jira/browse/SPARK-32828
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.1.0, 3.0.2
> Reporter: Takeshi Yamamuro
> Assignee: Takeshi Yamamuro
> Priority: Minor
> Fix For: 3.1.0
>
>
> This ticket targets at fixing an existing bug below in
> `UserDefinedTypeSuite`;This PR intends to fix a existing bug below in
> `UserDefinedTypeSuite`;
> {code:java}
> [info] - SPARK-19311: UDFs disregard UDT type hierarchy (931
> milliseconds)16:22:35.936 WARN
> org.apache.spark.sql.catalyst.expressions.SafeProjection: Expr codegen error
> and falling back to interpreter modeorg.apache.spark.SparkException: Cannot
> cast org.apache.spark.sql.ExampleSubTypeUDT@46b1771f to
> org.apache.spark.sql.ExampleBaseTypeUDT@31e8d979. at
> org.apache.spark.sql.catalyst.expressions.CastBase.nullSafeCastFunction(Cast.scala:891)
> at
> org.apache.spark.sql.catalyst.expressions.CastBase.doGenCode(Cast.scala:852)
> at
> org.apache.spark.sql.catalyst.expressions.Expression.$anonfun$genCode$3(Expression.scala:147)
> ...{code}
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]