Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38861

GroupState.getCurrentWatermarkMs() on static Dataframe throws exception but should return -1

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.2
    • None
    • Structured Streaming
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            tchristman Trevor Christman

            Dates

              Created:
              Updated:

              Slack

                Issue deployment