@Raman Gupta,請嚐試以下
% python火花。sql(詳細描述delta-table-name) .select (sizeInBytes) .collect ()
@Raman Gupta,請參考以下
計算差值表的大小:
% scala com.databricks.sql.transaction.tahoe進口。_ val deltaLog = deltaLog。forTable(火花,“dbfs: / delta-table-path”) = deltaLog val快照。/ /當前快照三角洲表快照println (s”總文件大小(字節):$ {deltaLog.snapshot.sizeInBytes} "
計算非增量的大小表:
% scala spark.read.table .queryExecution.analyzed.stats (“non-delta-table-name”)