chore: Apply suggestions from code review

Co-authored-by: Andrew Lamb <alamb@influxdata.com>
pull/24376/head
Nga Tran 2021-10-26 17:08:07 -04:00 committed by GitHub
parent 7b3b92b161
commit 6950e7a9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -154,13 +154,11 @@ impl SeriesSet {
let start_row = self.start_row;
let num_rows = self.num_rows;
for field_index in self.field_indexes.iter() {
self.field_indexes.iter()
.all(|field_index| {
let array = self.batch.column(field_index.timestamp_index);
if !Self::is_all_null(array, start_row, num_rows) {
return false;
}
}
true
Self::is_all_null(array, start_row, num_rows)
});
}
// Convert and append the values from a single field to a Series