title: Fastest way to check if DataFrame(Scala) is empty?
body: <p>How to check if DataFrame(<strong>Scala</strong>) is empty in fastest way?I use <strong>DF.limit(1).rdd.isEmpty</strong>, faster than DF.rdd.isEmpty,but not ideal.Is there any better way to do that?</p>