better error message for fs io source

This commit is contained in:
Qingping Hou 2021-09-04 17:25:02 -07:00 committed by QP Hou
parent ac761afea0
commit 3ff234798e

View File

@ -40,7 +40,13 @@ where
let fs_path = uri.path().to_string();
let mut file_ext = ".".to_string();
file_ext.push_str(t.extension()?);
let files = build_file_list(&fs_path, &file_ext)?;
debug!("building file list from path {}...", fs_path);
let files = build_file_list(&fs_path, &file_ext).map_err(|e| {
ColumnQError::FileStore(format!(
"Failed to build file list from path `{}`: {}",
fs_path, e
))
})?;
debug!("loading file partitions: {:?}", files);
partitions_from_iterator(files.iter().map(|s| s.as_str()), partition_reader)