spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-26759) Arrow optimization in SparkR's interoperability
Date Fri, 15 Feb 2019 02:32:00 GMT

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

Hyukjin Kwon commented on SPARK-26759:
--------------------------------------

Adding [~falaki] too.

> Arrow optimization in SparkR's interoperability
> -----------------------------------------------
>
>                 Key: SPARK-26759
>                 URL: https://issues.apache.org/jira/browse/SPARK-26759
>             Project: Spark
>          Issue Type: Umbrella
>          Components: SparkR, SQL
>    Affects Versions: 3.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: release-notes
>
> Arrow 0.12.0 is release and it contains R API. We could optimize Spark DaraFrame <>
R DataFrame interoperability.
> For instance see the examples below:
>  - {{dapply}}
> {code:java}
>     df <- createDataFrame(mtcars)
>     collect(dapply(df,
>                    function(r.data.frame) {
>                      data.frame(r.data.frame$gear)
>                    },
>                    structType("gear long")))
>     {code}
>  - {{gapply}}
> {code:java}
>     df <- createDataFrame(mtcars)
>     collect(gapply(df,
>                    "gear",
>                    function(key, group) {
>                      data.frame(gear = key[[1]], disp = mean(group$disp) > group$disp)
>                    },
>                    structType("gear double, disp boolean")))
>     {code}
>  - R DataFrame -> Spark DataFrame
> {code:java}
>     createDataFrame(mtcars)
>     {code}
>  - Spark DataFrame -> R DataFrame
> {code:java}
>     collect(df)
>     head(df)
>     {code}



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


Mime
View raw message