brancz commented on code in PR #12586:
URL: https://github.com/apache/datafusion/pull/12586#discussion_r1772928513


##########
datafusion/physical-plan/src/aggregates/group_values/row.rs:
##########
@@ -230,6 +231,11 @@ impl GroupValues for GroupValuesRows {
                 }
                 *array = cast(array.as_ref(), expected)?;
             }
+
+            if expected.is_nested() && 
needs_nested_dictionary_encoding(expected, array)?
+            {
+                *array = dictionary_encode_nested(array.clone(), expected)?;
+            }

Review Comment:
   Fair enough! I was optimizing for not attempting to dictionary encode a bit 
prematurely.



##########
datafusion/physical-plan/src/aggregates/group_values/row.rs:
##########
@@ -230,6 +231,11 @@ impl GroupValues for GroupValuesRows {
                 }
                 *array = cast(array.as_ref(), expected)?;
             }
+
+            if expected.is_nested() && 
needs_nested_dictionary_encoding(expected, array)?
+            {
+                *array = dictionary_encode_nested(array.clone(), expected)?;
+            }

Review Comment:
   Fair enough! I was optimizing for not attempting to dictionary encode a bit 
prematurely. Changed 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to