FLIP-27 source has a default implementation of numRecordsIn metrics. However this metrics only count the number of batches Paimon source produces, not the number of records.
This PR fixes the metrics by increasing the counter before emitting data to source output.
Purpose
FLIP-27 source has a default implementation of
numRecordsIn
metrics. However this metrics only count the number of batches Paimon source produces, not the number of records.This PR fixes the metrics by increasing the counter before emitting data to source output.
Tests
SourceMetricsITCase#testNumRecordsIn
API and Format
No API changes.
Documentation
No new feature.