Skip to content

Commit

Permalink
fix(query): zero init pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jan 7, 2025
1 parent 2955310 commit ef02f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/expression/src/aggregate/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Payload {
self.current_write_page += 1;
if self.current_write_page > self.pages.len() {
let data = if zero_init {
vec![0; self.row_per_page * self.tuple_size]
vec![MaybeUninit::new(0); self.row_per_page * self.tuple_size]
} else {
Vec::with_capacity(self.row_per_page * self.tuple_size)
};
Expand Down

0 comments on commit ef02f02

Please sign in to comment.