avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1016) Expose aliases on Schema.Field
Date Mon, 06 Feb 2012 23:09:09 GMT

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

Doug Cutting updated AVRO-1016:

    Attachment: AVRO-1016.patch

Here's a modified version of the patch that:
 - adds some tests; and
 - avoids printing empty alias lists when copying aliases to a new Field instance.

> Expose aliases on Schema.Field
> ------------------------------
>                 Key: AVRO-1016
>                 URL: https://issues.apache.org/jira/browse/AVRO-1016
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.6.1
>            Reporter: koert kuipers
>            Priority: Trivial
>             Fix For: 1.6.2
>         Attachments: AVRO-1016.diff, AVRO-1016.patch
> If i create a copy of a Schema.Field using the constructor i lose the props and aliases.
I can find out what the props are and add them back in using Schema.Field.props() but there
is no way to find out the aliases. Can we also expose the aliases? Set<String> Schema.Field.aliases()?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message