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

Get Plain Schema

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.0, 1.8.2, 1.9.1
    • None
    • java
    • Patch, Important

    Description

      Avro Schema Reserved Keys:

      "doc", "fields", "items", "name", "namespace",
      "size", "symbols", "values", "type", "aliases", "default"

      AVRO also supports user defined properties for both Schema and Field.

      Is there way to get the schema with reserved property (key, value)? 

      Input Schema: 

      {
        "name": "testSchema",
        "namespace": "com.avro",
        "type": "record",
        "fields": [
          {
            "name": "email",
            "type": "string",
            "doc": "email id",
            "user_field_prop": "xxxxx"
          }
        ],
        "user_schema_prop": "xxxxxx"
      }

      Expected Plain Schema:

      {
        "name": "testSchema",
        "namespace": "com.avro",
        "type": "record",
        "fields": [
          {
            "name": "email",
            "type": "string",
            "doc": "email id"
          }
        ]
      }
      

      Attachments

        Activity

          People

            cutting Doug Cutting
            rumeshkrish Rumeshkrishnan Mohan
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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