zebsme commented on code in PR #15103:
URL: https://github.com/apache/datafusion/pull/15103#discussion_r1986332402


##########
datafusion/physical-plan/src/aggregates/mod.rs:
##########
@@ -809,8 +809,54 @@ impl DisplayAs for AggregateExec {
                 }
             }
             DisplayFormatType::TreeRender => {
-                // TODO: collect info
-                write!(f, "")?;
+                let g: Vec<String> = if self.group_by.is_single() {

Review Comment:
   hi @alamb, sorry for the mistake. Let me clarify my original thoughts. I 
noticed that DuckDB provides full expressions for aggregations while only index 
for group_by: 
   ```
   ┌─────────────┴─────────────┐ 
   │       HASH_GROUP_BY       │ 
   │    ────────────────────   │ 
   │          Groups:          │ 
   │             #0            │ 
   │             #1            │ 
   │                           │ 
   │        Aggregates:        │ 
   │    sum_no_overflow(#2)    │ 
   │          min(#3)          │ 
   │                           │ 
   │          ~0 Rows          │ 
   └─────────────┬─────────────┘ 
   ```
   But as you pointed out, it lacks test coverage — my apologies, maybe i can 
finish it in the future :)



-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to