You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/06/01 04:57:17 UTC

[jira] [Resolved] (SPARK-7978) DecimalType should not be singleton

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

Reynold Xin resolved SPARK-7978.
--------------------------------
          Resolution: Fixed
       Fix Version/s: 1.4.1
    Target Version/s:   (was: 1.4.0)

> DecimalType should not be singleton
> -----------------------------------
>
>                 Key: SPARK-7978
>                 URL: https://issues.apache.org/jira/browse/SPARK-7978
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, SQL
>    Affects Versions: 1.4.0
>            Reporter: Davies Liu
>            Assignee: Davies Liu
>            Priority: Blocker
>             Fix For: 1.4.1
>
>
> The DecimalType can not be constructed with parameters. When it's constructed without parameters, we always get same objects, which is wrong.
> {code}
> >>> from pyspark.sql.types import *
> >>> DecimalType(1, 2)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: __call__() takes exactly 1 argument (3 given)
> >>> DecimalType()
> DecimalType()
> {code}



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