yijiacui-db opened a new pull request #31944:
URL: https://github.com/apache/spark/pull/31944


   ### What changes were proposed in this pull request?
   This pull request proposes a new API for streaming sources to signal that 
they can report metrics, and adds a use case to support Kafka micro batch 
stream to report the stats of # of offsets for the current offset falling 
behind the latest.
   
   
   ### Why are the changes needed?
   The new API can expose any custom metrics for the "current" offset for 
streaming sources. A use case is that people want to know how the current 
offset falls behind the latest offset.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Unit test for Kafka micro batch source v2 are added to test the Kafka use 
case.
   


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to