Is there any way to get the number of records written when using spark to save records? While I know it isn't in the spec currently, I'd like to be able to do something like:
val count = df.write.csv(path)
Alternatively, being able to do an inline count (preferably without just using a standard accumulator) of the results of a step would be (almost) as effective. i.e.:
dataset.countTo(count_var).filter({function}).countTo(filtered_count_var).collect()
Any ideas?