[ 
https://issues.apache.org/jira/browse/AVRO-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AVRO-3790:
---------------------------------
    Labels: pull-request-available  (was: )

> [RUBY] Missing default namespace information in SchemaParseError
> ----------------------------------------------------------------
>
>                 Key: AVRO-3790
>                 URL: https://issues.apache.org/jira/browse/AVRO-3790
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: ruby
>    Affects Versions: 1.11.1
>            Reporter: Rémi Piotaix
>            Priority: Trivial
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to