[
https://issues.apache.org/jira/browse/SPARK-52601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-52601:
-----------------------------------
Labels: pull-request-available (was: )
> TransformingEncoder should work with primitive types
> ----------------------------------------------------
>
> Key: SPARK-52601
> URL: https://issues.apache.org/jira/browse/SPARK-52601
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Emil Ejbyfeldt
> Priority: Major
> Labels: pull-request-available
>
> Currently using a primitive type on as input to a transforming encoder will
> fail with an exception like
> ```
> Cause: java.lang.ClassCastException: class
> org.apache.spark.sql.catalyst.expressions.MutableAny cannot be cast to class
> org.apache.spark.sql.catalyst.expressions.MutableLong
> (org.apache.spark.sql.catalyst.expressions.MutableAny and
> org.apache.spark.sql.catalyst.expressions.MutableLong are in unnamed module
> of loader 'app')
> ```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]