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/27 12:07:00 UTC

[jira] [Created] (AVRO-3896) [Rust] support read schema with custom logical type

zejiong dong created AVRO-3896:
----------------------------------

             Summary: [Rust] support read schema with custom logical type
                 Key: AVRO-3896
                 URL: https://issues.apache.org/jira/browse/AVRO-3896
             Project: Apache Avro
          Issue Type: Improvement
            Reporter: zejiong dong


I find that it can't read schema with custom logical type because it has the [check|https://github.com/apache/avro/blob/807314512736c2a1c0a4203f4eb9b5d84aa021e4/lang/rust/avro/src/schema.rs#L1275] to guarantee that the logical type must be supported in avro-rust.

Can we modify the [check|https://github.com/apache/avro/blob/807314512736c2a1c0a4203f4eb9b5d84aa021e4/lang/rust/avro/src/schema.rs#L1275] here to support reading custom logical type:

1. If the logical type is supported in avro-rust, it's fine and we convert it.
2. If the logical type is not supported, treat it as the original type and keep the "logicalType" as an attribute.



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