[ 
https://issues.apache.org/jira/browse/AVRO-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17485202#comment-17485202
 ] 

ASF subversion and git services commented on AVRO-3248:
-------------------------------------------------------

Commit 1a2d0a36b910fab16cc85399d38dd030dcd74f5c in avro's branch 
refs/heads/branch-1.11 from Litao Lu
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=1a2d0a3 ]

AVRO-3248: Rust: Support named types in UnionSchema (#1396)

* AVRO-3248: Rust: Support named types in UnionSchema

previously union does not support named types, and we will get error if
we add 2 records into 1 UnionSchema.

* AVRO-3248: Fix a typo in error message

* AVRO-3248: Give better names for the schemata as string

* AVRO-3248: More better names for variables

* AVRO-3248: Code formatting

* AVRO-3248 Fix formatting & build

Signed-off-by: Martin Tzvetanov Grigorov <mgrigo...@apache.org>

* AVRO-3248: Fix generate_interop_data and formatting

Signed-off-by: Martin Tzvetanov Grigorov <mgrigo...@apache.org>

* AVRO-3248: Fix some regressions after the rebase to master

Signed-off-by: Martin Tzvetanov Grigorov <mgrigo...@apache.org>

* AVRO-3248 Fix the position in the Union for the Double value

Signed-off-by: Martin Tzvetanov Grigorov <mgrigo...@apache.org>

Co-authored-by: Martin Grigorov <marti...@users.noreply.github.com>
Co-authored-by: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
(cherry picked from commit 49c6e1067c937d066503be9c7f4032fb03f67474)


> Rust: Support named types in UnionSchema
> ----------------------------------------
>
>                 Key: AVRO-3248
>                 URL: https://issues.apache.org/jira/browse/AVRO-3248
>             Project: Apache Avro
>          Issue Type: Improvement
>            Reporter: Lu Litao
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> currently there's no support for named type in avro's Union type in rust.
> as stated in this comment of the UnionSchma struct
> {quote}// Used to ensure uniqueness of schema inputs, and provide constant 
> time finding of the
>  // schema index given a value.
>  // **NOTE** that this approach does not work for named types, and will have 
> to be modified
>  // to support that. A simple solution is to also keep a mapping of the names 
> used.
> {quote}



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

Reply via email to