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

Reynold Xin commented on SPARK-16407:
-------------------------------------

Actually I spoke too soon. I only read the code change and didn't read the 
description on the pr. I think the high level idea to pass in a sink object 
makes sense, but I don't think the goal should be to support foreachRdd, 
because that goes directly against the spirit of one of the high level goals of 
structured streaming: decouple the logical plan from the physical execution, 
which includes not exposing batches to the end-user.


> Allow users to supply custom StreamSinkProviders
> ------------------------------------------------
>
>                 Key: SPARK-16407
>                 URL: https://issues.apache.org/jira/browse/SPARK-16407
>             Project: Spark
>          Issue Type: Improvement
>          Components: Streaming
>            Reporter: holdenk
>
> The current DataStreamWriter allows users to specify a class name as format, 
> however it could be easier for people to directly pass in a specific provider 
> instance - e.g. for user equivalent of ForeachSink or other sink with 
> non-string parameters.



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