In spark, how to estimate the number of elements in a dataframe quickly

Viewed 9829

In spark, is there a fast way to get an approximate count of the number of elements in a Dataset ? That is, faster than Dataset.count() does.

Maybe we could calculate this information from the number of partitions of the DataSet, could we ?

2 Answers
Related