Skip to content

Commit

Permalink
Handle empty patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Oct 11, 2024
1 parent 751d1a4 commit 89e1c2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chsql/src/parquet_ordered_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ namespace duckdb {
while (fileList.Scan(it, filename)) {
unglobbedFileList.push_back(filename);
}
if (unglobbedFileList.empty()) {
throw duckdb::InvalidInputException("No files matched the provided pattern.");
}

res->orderBy = input.inputs[1].GetValue<string>();
for (auto & file : unglobbedFileList) {
Expand Down

0 comments on commit 89e1c2f

Please sign in to comment.