Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ public String getRestoreDir() {

public long getLength() {
// TODO: We can obtain the file sizes of the snapshot here.
return 0;
// returns a valid positive length instead of 0 to avoid
// Spark's empty-partition filtering which was introduced via SPARK-22233
// and enabled by default in SPARK-34809
return 1L;
}

public String[] getLocations() {
Expand Down