Always check the row's columns.

This commit is contained in:
Andrés N. Robalino 2019-11-24 01:25:41 -05:00
parent 91698b2657
commit a74145961e

View File

@ -41,9 +41,15 @@ pub fn compact(
let keep = if columns.is_empty() { let keep = if columns.is_empty() {
item.is_some() item.is_some()
} else { } else {
columns match item {
.iter() Tagged {
.all(|field| item.get_data(field).borrow().is_some()) item: Value::Row(ref r),
..
} => columns
.iter()
.all(|field| r.get_data(field).borrow().is_some()),
_ => false,
}
}; };
futures::future::ready(keep) futures::future::ready(keep)