We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a50856a commit c5764f3Copy full SHA for c5764f3
src/query/pipeline/sources/src/processors/sources/input_formats/input_context.rs
@@ -94,6 +94,9 @@ impl InputContext {
94
files: Vec<String>,
95
scan_progress: Arc<Progress>,
96
) -> Result<Self> {
97
+ if files.is_empty() {
98
+ return Err(ErrorCode::BadArguments("no file to copy"));
99
+ }
100
let plan = Box::new(CopyIntoPlan { stage_info, files });
101
let read_batch_size = 1024 * 1024;
102
let split_size = 128usize * 1024 * 1024;
0 commit comments