File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -562,6 +562,7 @@ mod tests {
562562 use crate :: schema:: MetadataColumnSpec ;
563563 use crate :: schema:: { DataType , SchemaRef , StructField , StructType } ;
564564 use crate :: table_features:: ColumnMappingMode ;
565+ use crate :: utils:: test_utils:: assert_result_error_with_message;
565566 use crate :: Expression as Expr ;
566567 use crate :: ExpressionRef ;
567568
@@ -1018,6 +1019,7 @@ mod tests {
10181019 obj[ "new_field" ] = serde_json:: json!( "my_new_value" ) ;
10191020 let invalid_blob = obj. to_string ( ) ;
10201021
1021- let internal_res: Result < InternalScanState , _ > = serde_json:: from_str ( & invalid_blob) ;
1022+ let res: Result < InternalScanState , _ > = serde_json:: from_str ( & invalid_blob) ;
1023+ assert_result_error_with_message ( res, "unknown field" ) ;
10221024 }
10231025}
You can’t perform that action at this time.
0 commit comments