You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Li Jin (JIRA)" <ji...@apache.org> on 2017/10/07 14:46:00 UTC

[jira] [Commented] (SPARK-22221) Add User Documentation for Working with Arrow in Spark

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

Li Jin commented on SPARK-22221:
--------------------------------

I think we should also add to the document is what are the  behavior difference of arrow vs non-arrow serialization (if any), in the current state, there are difference in array and struct type between arrow and non-arrow version. 

Array:

{code:java}
non-Arrow:
In [47]: type(df2.toPandas().array[0])
Out[47]: list

Arrow:
In [45]: type(df2.toPandas().array[0])
Out[45]: numpy.ndarray
{code}

{code:java}
non-Arrow:
In [35]: type(df.toPandas().struct[0])
Out[35]: pyspark.sql.types.Row

Arrow:
In [37]: type(df.toPandas().struct[0])
Out[37]: dict
{code}




> Add User Documentation for Working with Arrow in Spark
> ------------------------------------------------------
>
>                 Key: SPARK-22221
>                 URL: https://issues.apache.org/jira/browse/SPARK-22221
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark, SQL
>    Affects Versions: 2.3.0
>            Reporter: Bryan Cutler
>
> There needs to be user facing documentation that will show how to enable/use Arrow with Spark, what the user should expect, and describe any differences with similar existing functionality.
> A comment from Xiao Li on https://github.com/apache/spark/pull/18664
> Given the users/applications contain the Timestamp in their Dataset and their processing algorithms also need to have the codes based on the corresponding time-zone related assumptions.
> * For the new users/applications, they first enabled Arrow and later hit an Arrow bug? Can they simply turn off spark.sql.execution.arrow.enable? If not, what should they do?
> * For the existing users/applications, they want to utilize Arrow for better performance. Can they just turn on spark.sql.execution.arrow.enable? What should they do?
> Note Hopefully, the guides/solutions are user-friendly. That means, it must be very simple to understand for most users.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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