Skip to content

Commit

Permalink
Use the old error message for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Jan 13, 2025
1 parent e866bdd commit 263392b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/src/arrow/compute/kernels/scalar_cast_nested.cc
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,9 @@ struct CastStruct {
} else if (out_field->nullable()) {
fields_to_select[out_field_index] = kFillNullSentinel;
} else {
return Status::TypeError("cannot cast non-nullable field to nullable field: ",
in_type.ToString(), " ", out_type.ToString());
return Status::TypeError("struct fields don't match or are in the wrong order");
// return Status::TypeError("cannot cast non-nullable field to nullable field: ",
// in_type.ToString(), " ", out_type.ToString());
}
}

Expand Down

0 comments on commit 263392b

Please sign in to comment.