Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 11:47 PM
Hi,
I need some quick way to return True if Delta Table is Empty.
Tried this, but is is quite slow when checking more tables.
spark.read.table("table_name").count()
spark.read.table("table_name").rdd.isEmpty()
len(spark.read.table("table_name").head(1)) == 0
Thank you.