[ 
https://issues.apache.org/jira/browse/AVRO-3886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zejiong dong updated AVRO-3886:
-------------------------------
    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|https://iceberg.apache.org/spec/#avro:~:text=%7B%20%22type%22%3A%20%22fixed%22%2C%0A%C2%A0%C2%A0%22size%22%3A%2016%2C%0A%C2%A0%C2%A0%22logicalType%22%3A%20%22uuid%22%20%7D]
 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?

 

  was:
 

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|https://iceberg.apache.org/spec/#avro:~:text=%7B%20%22type%22%3A%20%22fixed%22%2C%0A%C2%A0%C2%A0%22size%22%3A%2016%2C%0A%C2%A0%C2%A0%22logicalType%22%3A%20%22uuid%22%20%7D]
 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?

 


> [Rust] Serialize attribute in schema to support custom logical type
> -------------------------------------------------------------------
>
>                 Key: AVRO-3886
>                 URL: https://issues.apache.org/jira/browse/AVRO-3886
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: rust
>            Reporter: zejiong dong
>            Priority: Major
>
> 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|https://iceberg.apache.org/spec/#avro:~:text=%7B%20%22type%22%3A%20%22fixed%22%2C%0A%C2%A0%C2%A0%22size%22%3A%2016%2C%0A%C2%A0%C2%A0%22logicalType%22%3A%20%22uuid%22%20%7D]
>  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?
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to