HeartSaVioR commented on code in PR #42822:
URL: https://github.com/apache/spark/pull/42822#discussion_r1323964451
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/statefulOperators.scala:
##########
@@ -169,7 +170,7 @@ trait StateStoreWriter extends StatefulOperator with
PythonSQLMetrics { self: Sp
commitTimeMs = longMetric("commitTimeMs").value,
memoryUsedBytes = longMetric("stateMemory").value,
numRowsDroppedByWatermark =
longMetric("numRowsDroppedByWatermark").value,
- numShufflePartitions = longMetric("numShufflePartitions").value,
+ numShufflePartitions = numShufflePartitions,
Review Comment:
maybe `stateInfo.map(_.numPartitions).getOrElse(-1L)`? Technically it should
not need to get the number from outside, as the operator must know its own
child distribution requirement by itself.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]