zsxwing commented on a change in pull request #28607:
URL: https://github.com/apache/spark/pull/28607#discussion_r439853232



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/statefulOperators.scala
##########
@@ -77,6 +77,8 @@ trait StateStoreWriter extends StatefulOperator { self: 
SparkPlan =>
 
   override lazy val metrics = Map(
     "numOutputRows" -> SQLMetrics.createMetric(sparkContext, "number of output 
rows"),
+    "numLateInputs" -> SQLMetrics.createMetric(sparkContext,

Review comment:
       nit: maybe name it as `numDroppedRowsByWatermark`? Technically, we don't 
guarantee to drop all late inputs. So this metric doesn't report the accurate 
number of late inputs.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to