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

Shivaram Venkataraman commented on SPARK-17442:
-----------------------------------------------

I think we missed passing the options through when we converted to the new 
writer API in 
https://github.com/apache/spark/commit/cc4d5229c98a589da76a4d5e5fdc5ea92385183b

The fix is probably just to add a line `write <- callJMethod(write, "options", 
options)` -- Feel free to send a PR if you get a chance or I'll send one later 
tonight

cc [~felixcheung]

> Additional arguments in write.df are not passed to data source
> --------------------------------------------------------------
>
>                 Key: SPARK-17442
>                 URL: https://issues.apache.org/jira/browse/SPARK-17442
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 2.0.0
>            Reporter: Hossein Falaki
>            Priority: Blocker
>
> {{write.df}} passes everything in its arguments to underlying data source in 
> 1.x, but it is not passing header = "true" in Spark 2.0. For example the 
> following code snippet produces a header line in older versions of Spark but 
> not in 2.0.
> {code}
> df <- createDataFrame(iris)
> write.df(df, source = "com.databricks.spark.csv", path = "/tmp/iris", header 
> = "true")
> {code}



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

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

Reply via email to