alamb commented on code in PR #27743:
URL: https://github.com/apache/datafusion/pull/27743#discussion_r4698819214


##########
datafusion/common/src/config.rs:
##########
@@ -966,17 +966,6 @@ config_namespace! {
         /// the new schema verification step.
         pub skip_physical_aggregate_schema_check: bool, default = false
 
-        /// Whether aggregation uses the implementation from the major refactor
-        /// completed in the 56.0.0 release. When set to `false`, aggregation
-        /// falls back to the implementation used before 55.0.0.
-        ///
-        /// The fallback exists only as a workaround for bugs in the new

Review Comment:
   👍 



##########
datafusion/core/tests/memory_limit/mod.rs:
##########
@@ -247,19 +235,11 @@ async fn nested_key_spill_keeps_groups_unique() {
     /// single final stream (no hash repartition), which is the only spillable
     /// consumer left once the partials are done, with 8 row batches so a
     /// merged batch holds one or two groups.
-    fn nested_key_session_config(legacy: bool) -> SessionConfig {
-        let config = SessionConfig::new()
+    fn nested_key_session_config() -> SessionConfig {
+        SessionConfig::new()

Review Comment:
   that is certainly a nicer cleanup



##########
datafusion/physical-plan/src/aggregates/grouped_hash_stream.rs:
##########
@@ -1,1874 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0

Review Comment:
   🫡 



##########
datafusion/physical-plan/src/aggregates/aggregate_hash_table/common.rs:
##########
@@ -955,25 +955,134 @@ impl AggregateHashTableState {
 #[cfg(test)]
 mod tests {
     use std::sync::Arc;
+    use std::sync::atomic::{AtomicUsize, Ordering};
+    use std::time::Duration;
 
     use arrow::array::{
-        Array, BooleanArray, DictionaryArray, Int32Array, Int64Array, 
PrimitiveArray,
-        StringArray,
+        Array, BooleanArray, DictionaryArray, Int32Array, Int64Array, 
ListBuilder,
+        PrimitiveArray, StringArray, UInt32Array, UInt32Builder,
     };
     use arrow::buffer::ScalarBuffer;
     use arrow::compute::cast;
     use arrow::datatypes::{
         ArrowDictionaryKeyType, ArrowNativeType, DataType, Field, Int8Type, 
Schema,
         UInt8Type,
     };
-    use datafusion_functions_aggregate::sum::sum_udaf;
+    use datafusion_expr::AggregateMetric;
+    use datafusion_functions_aggregate::{array_agg::array_agg_udaf, 
sum::sum_udaf};
     use datafusion_physical_expr::aggregate::AggregateExprBuilder;
-    use datafusion_physical_expr::expressions::Column;
+    use datafusion_physical_expr::expressions::{Column, col};
 
     use super::*;
     use crate::aggregates::group_values::aggregate_sub_metrics;
     use crate::metrics::ExecutionPlanMetricsSet;
 
+    #[derive(Debug)]

Review Comment:
   Apparently this is not new code, but was moved out of (the deleted) 
grouped_hash_stream.rs



-- 
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