zejiong dong created AVRO-3892:
----------------------------------
Summary: [Rust] support to convert bytes to fixed in resolve_fixed
Key: AVRO-3892
URL: https://issues.apache.org/jira/browse/AVRO-3892
Project: Apache Avro
Issue Type: Improvement
Components: rust
Reporter: zejiong dong
I'm working on iceberg-rs and converting value of iceberg between value of Avro
using
```
let avro_value =
to_value(iceberg_value).unwrap().resolve(&avro_schema).unwrap();
```
But I can't convert any byte-like type(binary or fixed) in iceberg to fixed
type in avro. Any byte-like byte will convert to avro byte using
serialize_bytes first and use convert to dedicated type use resolve. But
[resolved_fixed|[https://github.com/apache/avro/blob/2b1955947ab446ad437f152ec2f3310ea399a015/lang/rust/avro/src/types.rs#L910]|https://github.com/apache/avro/blob/2b1955947ab446ad437f152ec2f3310ea399a015/lang/rust/avro/src/types.rs#L910],]
can't convert bytes to fixed. So can we consider supporting converting bytes
to fixed in resolve_fixed? I'm glad to send a PR if it sounds ok.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)