[
https://issues.apache.org/jira/browse/AVRO-3886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776059#comment-17776059
]
Christophe Le Saec commented on AVRO-3886:
------------------------------------------
I would say yes, extra attributes (properties) are serialized in Java, here for
[fixed
type|https://github.com/apache/avro/blob/main/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L1432];
In Java, logical type classes [does not extends
Schema|https://github.com/apache/avro/blob/main/lang/java/avro/src/main/java/org/apache/avro/LogicalType.java#L32],
they are [integrated to a
schema|https://github.com/apache/avro/blob/main/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L145].
It allows any external project to create their own logical type, connected to
the format type they want (string, fixed, array, record ...). I don't know if
it's possible in rust module.
> [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)