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: [email protected]
For additional commands, e-mail: [email protected]