Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4612

Allow AvroSchemaRegistry to disable name validation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • Extensions
    • None

    Description

      The AvroSchemaRegistry is used to specify the schema/data format for Record Readers/Writers. The Readers/Writers are implemented for any data format (JSON, CSV, e.g.), which have their own rules for naming conventions and allowed characters, etc. However AvroSchemaRegistry imposes the Avro rules for naming, which can make it difficult/impossible to represent certain data formats as records, such as Mongo documents with operators as field names (such as $set).

      An improvement would be to add a boolean property to AvroSchemaRegistry (defaulted to true to retain current behavior) called "Validate Field Names". In the AvroSchemaValidator and AvroSchemaRegistry (both places where the schema is parsed), the value of Validate Field Names would be set on the parser using setValidate().

      Attachments

        Activity

          People

            mattyb149 Matt Burgess
            mattyb149 Matt Burgess
            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 - 0.5h
                0.5h