[ https://issues.apache.org/jira/browse/SPARK-38861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523177#comment-17523177 ]
Sean R. Owen commented on SPARK-38861: -------------------------------------- Can you show the trace, where the UOE comes from? > GroupState.getCurrentWatermarkMs() on static Dataframe throws exception but > should return -1 > -------------------------------------------------------------------------------------------- > > Key: SPARK-38861 > URL: https://issues.apache.org/jira/browse/SPARK-38861 > Project: Spark > Issue Type: Bug > Components: Structured Streaming > Affects Versions: 3.1.2 > Reporter: Trevor Christman > Priority: Minor > > As per documentation GroupState.getCurrentWatermarkMs() returns -1 when > operating on a static Dataframe, as found here: > [https://spark.apache.org/docs/3.1.3/api/scala/org/apache/spark/sql/streaming/GroupState.html#getCurrentWatermarkMs():Long] > > In reality this function throws UnsupportedOperationException as documented > when operating on a DataFrame without a watermark set. This happens even if > the static DataFrame had a (useless) watermark configured. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org