You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liwei Lin (JIRA)" <ji...@apache.org> on 2016/04/20 09:30:25 UTC
[jira] [Created] (SPARK-14747) Add
assertStreaming/assertNoneStreaming checks in DataFrameWriter
Liwei Lin created SPARK-14747:
---------------------------------
Summary: 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