Skip to content

Commit

Permalink
Spark: Fix AddFilesProcedure error message when no partitions are fou…
Browse files Browse the repository at this point in the history
…nd (apache#9357)
  • Loading branch information
panbingkun authored and lisirrx committed Jan 4, 2024
1 parent 5e65383 commit 723e4f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void importFileTable(
importPartitions(table, ImmutableList.of(partition), checkDuplicateFiles);
} else {
Preconditions.checkArgument(
!partitions.isEmpty(), "Cannot find any matching partitions in table %s", partitions);
!partitions.isEmpty(), "Cannot find any matching partitions in table %s", table.name());
importPartitions(table, partitions, checkDuplicateFiles);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void importFileTable(
importPartitions(table, ImmutableList.of(partition), checkDuplicateFiles);
} else {
Preconditions.checkArgument(
!partitions.isEmpty(), "Cannot find any matching partitions in table %s", partitions);
!partitions.isEmpty(), "Cannot find any matching partitions in table %s", table.name());
importPartitions(table, partitions, checkDuplicateFiles);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void importFileTable(
importPartitions(table, ImmutableList.of(partition), checkDuplicateFiles);
} else {
Preconditions.checkArgument(
!partitions.isEmpty(), "Cannot find any matching partitions in table %s", partitions);
!partitions.isEmpty(), "Cannot find any matching partitions in table %s", table.name());
importPartitions(table, partitions, checkDuplicateFiles);
}
}
Expand Down

0 comments on commit 723e4f1

Please sign in to comment.