[ 
https://issues.apache.org/jira/browse/SPARK-18746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan resolved SPARK-18746.
---------------------------------
       Resolution: Fixed
         Assignee: Weiqing Yang
    Fix Version/s: 2.2.0

> Add implicit encoders for BigDecimal, timestamp and date
> --------------------------------------------------------
>
>                 Key: SPARK-18746
>                 URL: https://issues.apache.org/jira/browse/SPARK-18746
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Weiqing Yang
>            Assignee: Weiqing Yang
>             Fix For: 2.2.0
>
>
> Run the code below in spark-shell, there will be an error:
> {code}
> scala> spark.createDataset(Seq(new java.math.BigDecimal(10)))
> <console>:24: error: Unable to find encoder for type stored in a Dataset.  
> Primitive types (Int, String, etc) and Product types (case classes) are 
> supported by importing spark.implicits._  Support for serializing other types 
> will be added in future releases.
>        spark.createDataset(Seq(new java.math.BigDecimal(10)))
>                           ^
> scala>
> {code} 
> In this PR, implicit encoders for BigDecimal, timestamp and date will be 
> added.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to