File tree Expand file tree Collapse file tree
datafusion/physical-expr/src/expressions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,10 +340,10 @@ pub(crate) fn cast_with_target_field_and_options(
340340 let cast_type = target_field. data_type ( ) ;
341341 let is_valid_cast = expr_type == * cast_type
342342 || match ( & expr_type, cast_type) {
343- // Allow struct-to-struct casts that pass name-based compatibility validation.
344- // This validation is applied at planning time (now) to fail fast, rather than
345- // deferring errors to execution time. The name-based casting logic will be
346- // executed at runtime via ColumnarValue::cast_to.
343+ // Allow struct-to-struct casts that pass name-based compatibility validation.
344+ // This validation is applied at planning time (now) to fail fast, rather than
345+ // deferring errors to execution time. The name-based casting logic will be
346+ // executed at runtime via ColumnarValue::cast_to.
347347 ( Struct ( _) , Struct ( _) ) => can_cast_struct_types ( & expr_type, cast_type) ,
348348 _ => can_cast_types ( & expr_type, cast_type) ,
349349 } ;
You can’t perform that action at this time.
0 commit comments