Hi to all,
I have a (batch) job that writes to 1 or more sinks.
Is there a way to retrieve, once the job has terminated, the number of
records written to each sink?
Is there any better way than than using an accumulator for each sink?
If that is the only way to do that, the Sink API could be enriched in order
to automatically create an accumulator when required. E.g.

dataset.output(JDBCOutputFormat.buildJDBCOutputFormat()
            .setDrivername(...)
            .setDBUrl(...)
            .setQuery(...)
            *.addRecordsCountAccumulator("some-name")*
            .finish())

Best,
Flavio

Reply via email to