Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3892

[Rust] support to convert bytes to fixed in resolve_fixed

    XMLWordPrintableJSON

Details

    Description

      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 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.

      Attachments

        Issue Links

          Activity

            People

              zenotme zejiong dong
              zenotme zejiong dong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m