Skip to content

Commit 315abb8

Browse files
committed
fix: streamline filter_map usage in propagate_take_stats function
1 parent 2e5af89 commit 315abb8

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • vortex-array/src/arrays/dict

vortex-array/src/arrays/dict/take.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ pub(crate) fn propagate_take_stats(
157157
Stat::IsConstant,
158158
]
159159
.into_iter()
160-
.filter_map(|stat| {
161-
source
162-
.statistics()
163-
.get(stat)
164-
.and_then(|v| v.map(|s| s.into_value()).into_inexact().transpose())
165-
.map(|sv| (stat, sv))
166-
})
167-
.collect::<Vec<_>>();
160+
.filter_map(|stat| {
161+
source
162+
.statistics()
163+
.get(stat)
164+
.and_then(|v| v.map(|s| s.into_value()).into_inexact().transpose())
165+
.map(|sv| (stat, sv))
166+
})
167+
.collect::<Vec<_>>();
168168
st.combine_sets(
169169
&(unsafe { StatsSet::new_unchecked(inexact_min_max) }).as_typed_ref(source.dtype()),
170170
)

0 commit comments

Comments
 (0)