You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/04/18 22:11:00 UTC

[jira] [Commented] (AVRO-3495) Rust: Record serialization is sensitive to order of fields in struct

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

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

Commit 4413d579be8d8e0ebb7add27c66149c4aec2f27b in avro's branch refs/heads/avro-3495-fields-order-should-not-matter from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=4413d579b ]

AVRO-3495: The order of the struct's fields and schema's fields should not matter

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


> Rust: Record serialization is sensitive to order of fields in struct
> --------------------------------------------------------------------
>
>                 Key: AVRO-3495
>                 URL: https://issues.apache.org/jira/browse/AVRO-3495
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>            Reporter: Martin Tzvetanov Grigorov
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Major
>
> Initially reported at: [https://github.com/flavray/avro-rs/issues/47]
>  
> Trying to validate and write a record from the following struct:
> {code:java}
> #[derive(Deserialize, Serialize)]
> pub struct MyRecord {
>   b: String,
>   a: i64,
> }
>  {code}
>  
> using this schema:
> {code:java}
> {
>   "type": "record",
>   "name": "my_record",
>   "fields": [
>     {"name": "a", "type": "long"},
>     {"name": "b", "type": "string"},
>   ]
> } {code}
>  
> fails because the order of the fields is not the same.



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