I'm wondering if there are differences in performance (when reading) between those two commands?:
df.write.format('parquet').partitionBy(xx).save('/.../xx.parquet')
df.write.format('parquet').partitionBy(xx).saveAsTable('...')
I understand that for bucketing the question doesn't arise as it is only used with managed tables (saveAsTable()) ; however, I'm a bit confused regarding partitioning as to if there is a method to privilege.