You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/05 03:00:57 UTC

[GitHub] [arrow-datafusion] ic4y commented on a change in pull request #1520: use bumpalo for GroupState

ic4y commented on a change in pull request #1520:
URL: https://github.com/apache/arrow-datafusion/pull/1520#discussion_r778516821



##########
File path: datafusion/src/physical_plan/hash_aggregate.rs
##########
@@ -610,10 +615,14 @@ struct Accumulators {
     map: RawTable<(u64, usize)>,
 
     /// State for each group
-    group_states: Vec<GroupState>,
+    //group_states: Vec<GroupState>,
+    group_states: BumpVec<'a, GroupState>,
 }
 
-impl std::fmt::Debug for Accumulators {
+// will not be used multiple async, so Accumulators is Send
+unsafe impl Send for Accumulators<'_> {}

Review comment:
       This doesn't work. because accumulators holds `bump` for use in async func. async func requires `send`, but bump is `ref` not `send`.
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org