You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Erik Krogen (Jira)" <ji...@apache.org> on 2020/12/18 23:46:00 UTC

[jira] [Comment Edited] (SPARK-23862) Spark ExpressionEncoder should support java enum type in scala

    [ https://issues.apache.org/jira/browse/SPARK-23862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17252049#comment-17252049 ] 

Erik Krogen edited comment on SPARK-23862 at 12/18/20, 11:45 PM:
-----------------------------------------------------------------

I'm going to take up this work. Will submit new PR soon.


was (Author: xkrogen):
I'm going to take up this work.

> Spark ExpressionEncoder should support java enum type in scala
> --------------------------------------------------------------
>
>                 Key: SPARK-23862
>                 URL: https://issues.apache.org/jira/browse/SPARK-23862
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Fangshi Li
>            Priority: Major
>
> In SPARK-21255, spark upstream adds support for creating encoders for java enum types, but the support is only added to Java API(for enum working within Java Beans). Since the java enum can come from third-party java library, we have use case that requires 
> 1. using java enum types as field of scala case class
> 2. using java enum as the type T in Dataset[T]
> Spark ExpressionEncoder already supports ser/de many java types in ScalaReflection, so we propose to add support for java enum as well, as a follow up of SPARK-21255.



--
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