Skip to content

Commit 15bfa47

Browse files
author
Jan Kaul
committed
fix large avro error in iceberg-rust-spec
1 parent 6681898 commit 15bfa47

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

iceberg-rust-spec/src/error.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub enum Error {
2727
NotSupported(String),
2828
/// Avro error
2929
#[error(transparent)]
30-
Avro(#[from] apache_avro::Error),
30+
Avro(Box<apache_avro::Error>),
3131
/// Serde json
3232
#[error(transparent)]
3333
JSONSerde(#[from] serde_json::Error),
@@ -80,3 +80,9 @@ pub enum Error {
8080
#[error(transparent)]
8181
PartitionSpec(#[from] crate::spec::partition::PartitionSpecBuilderError),
8282
}
83+
84+
impl From<apache_avro::Error> for Error {
85+
fn from(err: apache_avro::Error) -> Self {
86+
Error::Avro(Box::new(err))
87+
}
88+
}

0 commit comments

Comments
 (0)