Hi Josua, I just realized that you are not subscribed to the mailing list and you didn't receive my earlier responses. Please see below.
Martin On Tue, Oct 24, 2023 at 11:41 AM Martin Grigorov <mgrigo...@apache.org> wrote: > https://issues.apache.org/jira/browse/AVRO-3894 > https://github.com/apache/avro/pull/2566 > > On Mon, Oct 23, 2023 at 8:54 PM Martin Grigorov <mgrigo...@apache.org> > wrote: > >> Hi, >> >> Please provide a complete test case that reproduces the problem and >> either open a Pull Request or paste it here. >> Then we’ll debug it and provide a fix. >> >> Regards, >> Martin >> >> On Mon, 23 Oct 2023 at 20:03, Josua Stingelin <josu...@hotmail.com> >> wrote: >> >>> Hei Guys, >>> >>> -- off topic >>> I hope this is the correct mailing list. I tried to send on user list >>> first but >>> the mail bounced because I haven't subscribed the mailing list. However, >>> I >>> didn't figure out where I can subscribe =/ >>> -- >>> >>> This concerns the rust crate apache-avro. >>> >>> >>> Does anyone know if it's possible, to use type aliases with serde >>> serialization? >>> >>> When trying to serialize an object using `writer.append_ser` I get the >>> following >>> error: >>> >>> called `Result::unwrap()` on an `Err` value: There is no entry for >>> date in the lookup table: {"name": String("Great Meeting"), "time": >>> Union(0, Null)}. >>> >>> Renaming `time` to `date` would fix the issue, but the goal is to >>> simulate >>> renaming a propetry as part of a schema evolution. >>> >>> >>> With the following schema: >>> >>> const RAW_SCHEMA_V2 : &str = r#" >>> { >>> "type": "record", >>> "name": "Conference", >>> "namespace": "sth", >>> "fields": [ >>> {"type": "string", "name": "name"}, >>> {"type": ["null", "long"], "name": "date", "aliases" : [ >>> "time" ]}, >>> ] >>> }"#; >>> >>> >>> And the struct: >>> >>> #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] >>> pub struct Conference { >>> pub name: String, >>> pub time: Option<i64>, >>> } >>> >>> >>> Thank you for any hint on what I'm doing wrong =) >>> Josua >>> >>