vkorukanti commented on a change in pull request #33065: URL: https://github.com/apache/spark/pull/33065#discussion_r658800635
########## File path: sql/core/src/test/scala/org/apache/spark/sql/streaming/StateStoreMetricsTest.scala ########## @@ -76,6 +76,41 @@ trait StateStoreMetricsTest extends StreamTest { } true } + } + + /** AssertOnQuery to verify the given state operator's custom metric has expected value */ + def assertStateOperatorCustomMetric( + metric: String, expected: Long, operatorIndex: Int = 0): AssertOnQuery = { Review comment: refactored the common code as suggested. -- 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. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org 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