refactor: apply PR feedback

pull/24376/head
Edd Robinson 2021-12-02 19:34:47 +00:00
parent de25c8e1a4
commit 083ba1daf4
1 changed files with 4 additions and 4 deletions

View File

@ -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
} }