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

[RUBY] Missing default namespace information in SchemaParseError

    XMLWordPrintableJSON

Details

    Description

      The Avro::SchemaParseError exception only has information about the type name that is missing.

      However, when nesting schemas (record fields):

      • [If] A name only is specified, i.e., a name that contains no dots. In this case the namespace is taken from the most tightly enclosing schema or protocol. For example, if "name": "X" is specified, and this occurs within a field of the record definition of org.foo.Y, then the fullname is org.foo.X. If there is no enclosing namespace then the null namespace is used.

       

      The UnknownSchemaError is raised in Avro::Schema.real_parse that already has the `default_namespace` parameter. It should be just a matter of adding this attribute to the error class.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              piotaixr Rémi Piotaix
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 50m
                  50m