Skip to content

Commit b878844

Browse files
Update error type from DataInvalid to Unexpected
Addresses a PR review comment to use the right error type that is aligned with the sort spec implementation
1 parent 6b89b3d commit b878844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/iceberg/src/spec/table_metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ impl TableMetadata {
511511
&& !sort_order.fields.is_empty()
512512
{
513513
return Err(Error::new(
514-
ErrorKind::DataInvalid,
514+
ErrorKind::Unexpected,
515515
format!(
516516
"Sort order ID {} is reserved for unsorted order",
517517
SortOrder::UNSORTED_ORDER_ID

0 commit comments

Comments
 (0)