@@ -6,6 +6,7 @@ use datafusion::arrow::datatypes::{Field, Int64Type, Int8Type, Schema};
66use datafusion:: arrow:: { array:: StringDictionaryBuilder , datatypes:: DataType } ;
77use datafusion:: assert_batches_eq;
88use datafusion:: common:: ScalarValue ;
9+ use datafusion:: config:: ConfigOptions ;
910use datafusion:: logical_expr:: { ColumnarValue , ScalarFunctionArgs } ;
1011use datafusion:: prelude:: SessionContext ;
1112use datafusion_functions_json:: udfs:: json_get_str_udf;
@@ -600,6 +601,7 @@ fn test_json_get_utf8() {
600601 Field :: new ( "ret_field" , DataType :: Utf8 , false )
601602 . with_metadata ( HashMap :: from_iter ( vec ! [ ( "is_json" . to_string( ) , "true" . to_string( ) ) ] ) ) ,
602603 ) ,
604+ config_options : Arc :: new ( ConfigOptions :: default ( ) ) ,
603605 } )
604606 . unwrap ( )
605607 else {
@@ -633,6 +635,7 @@ fn test_json_get_large_utf8() {
633635 Field :: new ( "ret_field" , DataType :: Utf8 , false )
634636 . with_metadata ( HashMap :: from_iter ( vec ! [ ( "is_json" . to_string( ) , "true" . to_string( ) ) ] ) ) ,
635637 ) ,
638+ config_options : Arc :: new ( ConfigOptions :: default ( ) ) ,
636639 } )
637640 . unwrap ( )
638641 else {
@@ -1573,6 +1576,7 @@ fn check_for_null_dictionary_values(array: &dyn Array) {
15731576}
15741577
15751578/// Test that we don't output nulls in dictionary values.
1579+ #[ allow( clippy:: doc_markdown) ]
15761580/// This can cause issues with arrow-rs and DataFusion; they expect nulls to be in keys.
15771581#[ tokio:: test]
15781582async fn test_dict_get_no_null_values ( ) {
0 commit comments