[ 
https://issues.apache.org/jira/browse/AVRO-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17780072#comment-17780072
 ] 

ASF subversion and git services commented on AVRO-3892:
-------------------------------------------------------

Commit 807314512736c2a1c0a4203f4eb9b5d84aa021e4 in avro's branch 
refs/heads/main from ZENOTME
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=807314512 ]

AVRO-3892: [Rust] Support to resolve fixed from bytes and deserialize bytes in 
deserialize_any (#2567)

* support to resolve fixed from bytes

* support to deserialize bytes, fixed, decimal.

* fix clippy

* AVRO-3892: Rename test method

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* AVRO-3892: [Rust] Add unit tests for deserializing &str/String from 
Value::Bytes

The tests are not really related to AVRO-3892. They do not cover the new
changes in deserialize_any()

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* add unit test for deserialize bytes from decimal and uuid

* add more test

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>

> [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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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 using resolve. But 
> [resolved_fixed |#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)

Reply via email to