We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d84b45 commit efd0f55Copy full SHA for efd0f55
1 file changed
datafusion/functions-aggregate/src/string_agg.rs
@@ -629,9 +629,7 @@ impl GroupsAccumulator for StringAggGroupsAccumulator {
629
self.values.resize(total_num_groups, None);
630
let array = apply_filter_as_nulls(&values[0], opt_filter)?;
631
632
- if self.deferred.is_some() {
633
- self.defer_batch(array, group_indices)?;
634
- } else if self.should_promote(&array, total_num_groups) {
+ if self.deferred.is_some() || self.should_promote(&array, total_num_groups) {
635
self.defer_batch(array, group_indices)?;
636
} else {
637
self.append_eager_batch(&array, group_indices)?;
0 commit comments