Skip to content

Commit

Permalink
Remove file list empty check to support bucketed scan
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGuangxin authored Jul 13, 2023
1 parent 824eb6e commit 42f71e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion velox/substrait/SubstraitToVeloxPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,8 @@ int32_t SubstraitVeloxPlanConverter::streamIsInput(
if (sRead.has_local_files()) {
const auto& fileList = sRead.local_files().items();
if (fileList.size() == 0) {
VELOX_FAIL("At least one file path is expected.");
// bucketed scan may contains empty file list
return -1;
}

// The stream input will be specified with the format of
Expand Down

0 comments on commit 42f71e0

Please sign in to comment.