You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:25:14 UTC

[jira] [Updated] (SPARK-12360) Support using 64-bit long type in SparkR

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

Hyukjin Kwon updated SPARK-12360:
---------------------------------
    Labels: bulk-closed  (was: )

> Support using 64-bit long type in SparkR
> ----------------------------------------
>
>                 Key: SPARK-12360
>                 URL: https://issues.apache.org/jira/browse/SPARK-12360
>             Project: Spark
>          Issue Type: New Feature
>          Components: SparkR
>    Affects Versions: 1.5.2
>            Reporter: Sun Rui
>            Priority: Major
>              Labels: bulk-closed
>
> R has no support for 64-bit integers. While in Scala/Java API, some methods have one or more arguments of long type. Currently we support only passing an integer cast from a numeric to Scala/Java side for parameters of long type of such methods. This may have problem covering large data sets.
> Storing a 64-bit integer in a double obviously does not work as some 64-bit integers can not be exactly represented in double format, so x and x+1 can't be distinguished.
> There is a bit64 package (https://cran.r-project.org/web/packages/bit64/index.html) in CRAN which supports vectors of 64-bit integers. We can investigate if it can be used for this purpose.
> two questions are:
> 1. Is the license acceptable?
> 2. This will have SparkR depends on a  non-base third-party package, which may complicate the deployment.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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