You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/09/09 07:32:00 UTC
[jira] [Commented] (SPARK-32828) Cast from a derived user-defined
type to a base type
[ https://issues.apache.org/jira/browse/SPARK-32828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192698#comment-17192698 ]
Apache Spark commented on SPARK-32828:
--------------------------------------
User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/29691
> 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
> Priority: Minor
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org