[
https://issues.apache.org/jira/browse/AVRO-3248?focusedWorklogId=710881&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-710881
]
ASF GitHub Bot logged work on AVRO-3248:
----------------------------------------
Author: ASF GitHub Bot
Created on: 18/Jan/22 21:04
Start Date: 18/Jan/22 21:04
Worklog Time Spent: 10m
Work Description: praetp commented on pull request #1396:
URL: https://github.com/apache/avro/pull/1396#issuecomment-1015832184
I am interested in this change.
Didn't compile for me. Maybe I did something wrong ?
```
error[E0061]: this enum variant takes 2 arguments but 1 argument was supplied
-->
/home/spetsnaz/.cargo/git/checkouts/avro-d44366ca41b07ddf/912e979/lang/rust/src/decode.rs:209:20
|
209 | Ok(Value::Union(Box::new(value)))
| ^^^^^^^^^^^^ --------------- supplied 1 argument
| |
| expected 2 arguments
|
note: tuple variant defined here
-->
/home/spetsnaz/.cargo/git/checkouts/avro-d44366ca41b07ddf/912e979/lang/rust/src/types.rs:74:5
|
74 | Union(i32, Box<Value>),
| ^^^^^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 710881)
Time Spent: 1h 10m (was: 1h)
> 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
> Time Spent: 1h 10m
> 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)