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

[Rust] Serialize attribute in schema to support custom logical type

    XMLWordPrintableJSON

Details

    Description

      I'm implementing the iceberg-rust now and we use the avro-rust to write the manifest file. In iceberg spec, the uuid is the logical type of fixed rather than string as avro spec. So I need to customize the logical type using attributes of the schema.  But I find that in avro-rust, the attribute of schema will be ignore when serialize. Like: https://github.com/apache/avro/blob/28cdbd8f00ee16866bc7610aea2a878f7a0304dc/lang/rust/avro/src/schema.rs#L1890

      I'm curious why they are ignored and would it be possible to support serializing them so that the user can custom their logical type?

       

      Attachments

        Issue Links

          Activity

            People

              zenotme zejiong dong
              zenotme zejiong dong
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 0.5h
                  0.5h