Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3663

rust crate apache_avro_derive creates invalid schemas for raw identifiers

    XMLWordPrintableJSON

Details

    Description

      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:
       
       

      struct TestRawIdent { r#type: bool }

       
       
      I implemented a fix in https://github.com/apache/avro/pull/1945

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              heartlabs Neidhart Orlich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m