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 2016/12/06 19:49:58 UTC

[jira] [Commented] (SPARK-18746) Add newBigDecimalEncoder

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

Apache Spark commented on SPARK-18746:
--------------------------------------

User 'weiqingy' has created a pull request for this issue:
https://github.com/apache/spark/pull/16176

> Add newBigDecimalEncoder
> ------------------------
>
>                 Key: SPARK-18746
>                 URL: https://issues.apache.org/jira/browse/SPARK-18746
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Weiqing Yang
>
> 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} 
> To fix the error above, {{newBigDecimalEncoder}} will be added in the PR.



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

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