Don't use count() when you don't need to return the exact number of rows
Last updated
Was this helpful?
Last updated
Was this helpful?
When you don't need to return the exact number of rows use:
instead of:
In RDD you can use isEmpty() because if you see the code: