[ https://issues.apache.org/jira/browse/SPARK-36954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426016#comment-17426016 ]
Apache Spark commented on SPARK-36954: -------------------------------------- User 'ivoson' has created a pull request for this issue: https://github.com/apache/spark/pull/34220 > Fast fail with explicit err msg when calling withWatermark on non-streaming > dataset > ----------------------------------------------------------------------------------- > > Key: SPARK-36954 > URL: https://issues.apache.org/jira/browse/SPARK-36954 > Project: Spark > Issue Type: Improvement > Components: SQL, Structured Streaming > Affects Versions: 3.1.2 > Reporter: huangtengfei > Priority: Minor > > [Dataset.withWatermark|https://github.com/apache/spark/blob/v3.2.0-rc7/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala#L740] > is a function specific for SS. > Now it could be triggered on a batch dataset, and add a specific rule to > eliminate in analyze phase. User can call this API and nothing happens, it > may be a little bit confused. > If the usage is not as expected, maybe we can just fast fail it with explicit > message, and also we do not have to keep on extra rule to do this. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org