* Fix reject

* test

* clippy
This commit is contained in:
JT
2022-03-25 20:48:01 +13:00
committed by GitHub
parent e505e57a7a
commit 4e9c1067fb
2 changed files with 14 additions and 3 deletions

View File

@ -93,9 +93,12 @@ fn reject(
let mut vals = vec![];
for path in &keep_columns {
let fetcher = input_val.clone().follow_cell_path(&path.members)?;
cols.push(path.into_string());
vals.push(fetcher);
let fetcher = input_val.clone().follow_cell_path(&path.members);
if let Ok(value) = fetcher {
cols.push(path.into_string());
vals.push(value);
}
}
output.push(Value::Record { cols, vals, span })
}