[ 
https://issues.apache.org/jira/browse/AVRO-3492?focusedWorklogId=757759&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-757759
 ]

ASF GitHub Bot logged work on AVRO-3492:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Apr/22 05:27
            Start Date: 18/Apr/22 05:27
    Worklog Time Spent: 10m 
      Work Description: martin-g commented on code in PR #1647:
URL: https://github.com/apache/avro/pull/1647#discussion_r851887575


##########
lang/rust/avro_derive/tests/derive.rs:
##########
@@ -1063,4 +1063,40 @@ mod test_derive {
         serde_assert(TestBasicWithU32 { a: u32::MIN });
         serde_assert(TestBasicWithU32 { a: 1_u32 });
     }
+
+    #[derive(Debug, Serialize, Deserialize, AvroSchema, Clone, PartialEq)]
+    #[avro(alias = "a", alias = "b", alias = "c")]

Review Comment:
   It does - 
https://github.com/apache/avro/pull/1647/commits/05cf7807c947a58a6ab76aa50dfa8bb2a3999296





Issue Time Tracking
-------------------

    Worklog Id:     (was: 757759)
    Time Spent: 50m  (was: 40m)

> Rust: Implement derive aliases via annotation
> ---------------------------------------------
>
>                 Key: AVRO-3492
>                 URL: https://issues.apache.org/jira/browse/AVRO-3492
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: rust
>            Reporter: Martin Tzvetanov Grigorov
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> {color:#222222}Follow up on the Avro derive work. {color}
> {color:#222222}We want to be able to set "aliases" for a 
> Schema::Record.{color}
> E.g. a slice of strings:
> {code:java}
> #[derive(Debug, Serialize, Deserialize, AvroSchema, Clone, PartialEq)]
> #[avro(aliases = ["a", "b", "c"])]
> struct TestBasicWithU32 {
>     a: u32,
> } {code}
> or the less desired comma separated string:
> {code:java}
> #[derive(Debug, Serialize, Deserialize, AvroSchema, Clone, PartialEq)]
> #[avro(aliases = "a, b, c")]
> struct TestBasicWithU32 {
>     a: u32,
> } {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to