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

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

    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

          People

            Unassigned Unassigned
            tchristman Trevor Christman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: