Very often, we need to know how many files my table path contains and the overall size of the path for various optimizations. In the past, I had to write my own logic to accomplish this.
Delta Lake is making life easier. See how simple it is to obtain this information when your file is saved in delta format.
The delta table object provides the metadata directly accessible in the select query.
✅ Number of files in the path
✅ Total size of the path
✅ Location
✅ CreatedAt
✅ lastModified
✅ partitionColumns