We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8807026 commit e08a109Copy full SHA for e08a109
datafusion/functions-aggregate-common/src/aggregate/groups_accumulator/blocks.rs
@@ -162,14 +162,18 @@ impl<B: Block> Index<usize> for Blocks<B> {
162
163
#[inline]
164
fn index(&self, index: usize) -> &Self::Output {
165
- &self.inner[index]
+ unsafe {
166
+ self.inner.get_unchecked(index)
167
+ }
168
}
169
170
171
impl<B: Block> IndexMut<usize> for Blocks<B> {
172
173
fn index_mut(&mut self, index: usize) -> &mut Self::Output {
- &mut self.inner[index]
174
175
+ self.inner.get_unchecked_mut(index)
176
177
178
179
0 commit comments