[
https://issues.apache.org/jira/browse/AVRO-3886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17780682#comment-17780682
]
ASF subversion and git services commented on AVRO-3886:
-------------------------------------------------------
Commit d6837ed8782331fd714ef65b269f77813c1f42a7 in avro's branch
refs/heads/dependabot/maven/lang/java/io.netty-netty-bom-4.1.100.Final from
ZENOTME
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=d6837ed87 ]
AVRO-3886: [Rust] Serialize attribute in schema to support custom logical type
(#2557)
* AVRO-3886: serialize attribute in schema to support custom logical type
* AVRO-3886: [Rust] Use all kinds of JSON values for the attributes to serialize
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---------
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
> [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
> Assignee: zejiong dong
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0, 1.11.4
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)