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

StateOperator metrics should still return the total number of rows in state even if there was no data for a trigger

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1, 2.2.0
    • Structured Streaming
    • None

    Description

      If you have a StreamingDataFrame with an aggregation, we report a metric called stateOperators which consists of a list of data points per aggregation for our query (With Spark 2.1, only one aggregation is supported).

      These data points report:

      • numUpdatedStateRows
      • numTotalStateRows

      If a trigger had no data - therefore was not fired - we return 0 data points, however we should actually return a data point with

      • numTotalStateRows: numTotalStateRows in lastExecution
      • numUpdatedStateRows: 0

      This also affects eventTime statistics. We should still provide the min, max, avg even through the data didn't change.

      Attachments

        Activity

          People

            brkyvz Burak Yavuz
            brkyvz Burak Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: