Skip to content

Commit 8833253

Browse files
authored
fix: map benchmark failing (#18469)
## Which issue does this PR close? - map benchmark failing #18454 ## Rationale for this change - Map expects list, large_list or fixed_size_list but Scalar type is provided ## What changes are included in this PR? - Change the types to the types of keys and values ## Are these changes tested? - Previously failing tests pass ## Are there any user-facing changes? N/A
1 parent e4f2b49 commit 8833253

File tree

1 file changed

+1
-1
lines changed
  • datafusion/functions-nested/benches

1 file changed

+1
-1
lines changed

datafusion/functions-nested/benches/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn criterion_benchmark(c: &mut Criterion) {
9898
let values = ColumnarValue::Scalar(ScalarValue::List(Arc::new(value_list)));
9999

100100
let return_type = map_udf()
101-
.return_type(&[DataType::Utf8, DataType::Int32])
101+
.return_type(&[keys.data_type(), values.data_type()])
102102
.expect("should get return type");
103103
let arg_fields = vec![
104104
Field::new("a", keys.data_type(), true).into(),

0 commit comments

Comments
 (0)