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

Ruby: Records with symbol keys fail validation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.11.0, 1.10.2
    • Component/s: ruby
    • Labels:
      None

      Description

      AVRO-2749 added Ruby serialization support for records with symbolic keys. However, these records still fail schema validation (which also impacts union serialization). Consider the following schema:

      {
        "type": "record",
        "name": "name",
        "fields": [
          {
            "type": "int",
            "name": "sub"
          }
        ]
      }

      The following hash is considered invalidate by Avro::SchemaValidator.validate!:

      { sub: 1 }
      

      Github PR coming shortly

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joelturkel Joel Turkel
                Reporter:
                joelturkel Joel Turkel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: