schnappi17 opened a new issue, #1748: URL: https://github.com/apache/incubator-paimon/issues/1748
### Search before asking - [X] I searched in the [issues](https://github.com/apache/incubator-paimon/issues) and found nothing similar. ### Motivation Support records lag metric for paimon source in streaming mode. ### Solution 1. Each reader report the split's row count when fetching a new split to a map with key of subtask(reader). 2. Split enumerator acc the discovered splits' row count when scanning the next snapshot. 3. The gauge registered calc with `discoveredRecords` - sum of all readers fetched splits' row count. ### Anything else? _No response_ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- 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]
