Skip to content

Commit 42f71e0

Browse files
authored
Remove file list empty check to support bucketed scan
1 parent 824eb6e commit 42f71e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

velox/substrait/SubstraitToVeloxPlan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,8 @@ int32_t SubstraitVeloxPlanConverter::streamIsInput(
11951195
if (sRead.has_local_files()) {
11961196
const auto& fileList = sRead.local_files().items();
11971197
if (fileList.size() == 0) {
1198-
VELOX_FAIL("At least one file path is expected.");
1198+
// bucketed scan may contains empty file list
1199+
return -1;
11991200
}
12001201

12011202
// The stream input will be specified with the format of

0 commit comments

Comments
 (0)