You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "yukkit (via GitHub)" <gi...@apache.org> on 2023/03/16 07:03:46 UTC
[GitHub] [arrow-datafusion] yukkit commented on a diff in pull request #5559: improve: support combining multiple grouping expressions
yukkit commented on code in PR #5559:
URL: https://github.com/apache/arrow-datafusion/pull/5559#discussion_r1138206257
##########
datafusion/expr/src/utils.rs:
##########
@@ -69,6 +69,94 @@ pub fn grouping_set_expr_count(group_expr: &[Expr]) -> Result<usize> {
}
}
+fn powerset<T>(slice: &[T]) -> Vec<Vec<&T>> {
+ let mut v = Vec::new();
+ for mask in 0..(1 << slice.len()) {
Review Comment:
You are so right, thanks for the reminder,i will check it
--
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