[
https://issues.apache.org/jira/browse/AVRO-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630022#comment-17630022
]
ASF subversion and git services commented on AVRO-3663:
-------------------------------------------------------
Commit e44b680621328c4e6524bd2983af1ce11afeebed in avro's branch
refs/heads/branch-1.11 from Neidhart Orlich
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e44b68062 ]
AVRO-3663: [Rust] Allow raw identifiers as field names (#1945)
* avro_derive: Allow raw identifiers as field names
* AVRO-3663: Add the ticket number in the test method name
* AVRO-3663: Print the debug info for the derived schema
* AVRO-3663: Fix formatting
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: Martin Grigorov <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit 48b9bacf308d6cd98cfb9cdb22e96aaaea324ecd)
> rust crate apache_avro_derive creates invalid schemas for raw identifiers
> -------------------------------------------------------------------------
>
> Key: AVRO-3663
> URL: https://issues.apache.org/jira/browse/AVRO-3663
> Project: Apache Avro
> Issue Type: Bug
> Components: rust
> Reporter: Neidhart Orlich
> Assignee: Martin Tzvetanov Grigorov
> Priority: Major
> Labels: pull-request-available
> Original Estimate: 0.5h
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When using a raw identifier as field name, the `r#` prefix is used as field
> name for the resulting schema which results in an invalid AVRO schema.
> Example:
>
>
> {code:java}
> struct TestRawIdent { r#type: bool }{code}
>
>
> I implemented a fix in https://github.com/apache/avro/pull/1945
--
This message was sent by Atlassian Jira
(v8.20.10#820010)