diff --git a/chsql/src/parquet_ordered_scan.cpp b/chsql/src/parquet_ordered_scan.cpp index be3c617..88585c4 100644 --- a/chsql/src/parquet_ordered_scan.cpp +++ b/chsql/src/parquet_ordered_scan.cpp @@ -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(); for (auto & file : unglobbedFileList) {