refactor: apply PR feedback
parent
de25c8e1a4
commit
083ba1daf4
|
@ -192,10 +192,10 @@ impl Chunk {
|
||||||
.read_filter(&select_columns, &predicate, negated_predicates.as_slice())
|
.read_filter(&select_columns, &predicate, negated_predicates.as_slice())
|
||||||
.context(TableError);
|
.context(TableError);
|
||||||
|
|
||||||
let row_groups = match &result {
|
let row_groups = result
|
||||||
Ok(result) => result.row_groups(),
|
.as_ref()
|
||||||
Err(_) => 0,
|
.map(|result| result.row_groups())
|
||||||
};
|
.unwrap_or(0);
|
||||||
debug!(elapsed=?now.elapsed(), succeeded=result.is_ok(), ?row_groups, "read_filter completed");
|
debug!(elapsed=?now.elapsed(), succeeded=result.is_ok(), ?row_groups, "read_filter completed");
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue