You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/04/20 09:32:25 UTC

[jira] [Commented] (SPARK-14747) Add assertStreaming/assertNoneStreaming checks in DataFrameWriter

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

Apache Spark commented on SPARK-14747:
--------------------------------------

User 'lw-lin' has created a pull request for this issue:
https://github.com/apache/spark/pull/12521

> Add assertStreaming/assertNoneStreaming checks in DataFrameWriter
> -----------------------------------------------------------------
>
>                 Key: SPARK-14747
>                 URL: https://issues.apache.org/jira/browse/SPARK-14747
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Liwei Lin
>            Priority: Minor
>
> If an end user happens to write the code mixed with continuous-query-oriented methods and non-continuous-query-oriented methods:
> {code}
> ctx.read
>    .format("text")
>    .stream("...")  // continuous query
>    .write
>    .text("...")    // non-continuous query
> {code}
> He/she would get somehow a confusing exception:
> {quote}
> Exception in thread "main" java.lang.AssertionError: assertion failed: No plan for FileSource\[./continuous_query_test_input\]
> 	at scala.Predef$.assert(Predef.scala:170)
> 	at org.apache.spark.sql.catalyst.planning.QueryPlanner.plan(QueryPlanner.scala:59)
> 	at org.apache.spark.sql.catalyst.planning.QueryPlanner.planLater(QueryPlanner.scala:54)
> 	at ...
> {quote}
> This JIRA proposes to add checks for continuous-query-oriented methods and non-continuous-query-oriented methods in `DataFrameWriter`.



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

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