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

support custom attribute at field level

    XMLWordPrintableJSON

Details

    Description

      Custom attributes are allowed at field level as per Avro specification : https://avro.apache.org/docs/current/spec.html#schemas 

      But Avro c++ implementation does not support custom attribute at field level.
      e.g. following schema cannot be parsed correctly due to presence of "sqlName" attribute.
      {
          'doc': 'weather warning',
          'name': 'weather',
          'type': 'record',
          'fields': [
         

      {         'name': 'station',         'type':'string',         'sqlName':'abc-@12'     }

      ,
         

      {         'name': 'time',         'type':'long',         'sqlName': '用户名'     }

      ]
      }

      Update implementation to support custom attribute at field level.

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              nileyadav Nilesh Yadav
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h 10m
                  6h 10m