[ https://issues.apache.org/jira/browse/SPARK-14747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-14747. -------------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 Issue resolved by pull request 12521 [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 > Fix For: 2.0.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org