You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "zejiong dong (Jira)" <ji...@apache.org> on 2023/10/17 05:50:00 UTC
[jira] [Created] (AVRO-3886) [Rust] Serialize attribute in schema to support custom logical type
zejiong dong created AVRO-3886:
----------------------------------
Summary: [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
## Problem
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)