Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datafusion/core/tests/dataframe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4801,7 +4801,7 @@ async fn unnest_with_redundant_columns() -> Result<()> {
@r"
Projection: shapes.shape_id [shape_id:UInt32]
Unnest: lists[shape_id2|depth=1] structs[] [shape_id:UInt32, shape_id2:UInt32;N]
Aggregate: groupBy=[[shapes.shape_id]], aggr=[[array_agg(shapes.shape_id) AS shape_id2]] [shape_id:UInt32, shape_id2:List(Field { data_type: UInt32, nullable: true });N]
Aggregate: groupBy=[[shapes.shape_id]], aggr=[[array_agg(shapes.shape_id) AS shape_id2]] [shape_id:UInt32, shape_id2:List(Field { data_type: UInt32 });N]
TableScan: shapes projection=[shape_id] [shape_id:UInt32]
"
);
Expand Down
3 changes: 2 additions & 1 deletion datafusion/core/tests/sql/aggregates/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ async fn csv_query_array_agg_distinct() -> Result<()> {
// | [4, 2, 3, 5, 1] |
// +------------------------------------------+
// Since ARRAY_AGG(DISTINCT) ordering is nondeterministic, check the schema and contents.
// The inner field nullability matches the input column c2 which is NOT NULL
assert_eq!(
*actual[0].schema(),
Schema::new(vec![Field::new_list(
"array_agg(DISTINCT aggregate_test_100.c2)",
Field::new_list_field(DataType::UInt32, true),
Field::new_list_field(DataType::UInt32, false),
true
),])
);
Expand Down
2 changes: 1 addition & 1 deletion datafusion/functions-aggregate/benches/array_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn merge_batch_bench(c: &mut Criterion, name: &str, values: ArrayRef) {
b.iter(|| {
#[allow(clippy::unit_arg)]
black_box(
ArrayAggAccumulator::try_new(&list_item_data_type, false)
ArrayAggAccumulator::try_new(&list_item_data_type, false, true)
.unwrap()
.merge_batch(std::slice::from_ref(&values))
.unwrap(),
Expand Down
Loading
Loading