[
https://issues.apache.org/jira/browse/AVRO-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056575#comment-13056575
]
Ken Krugler commented on AVRO-838:
----------------------------------
Hi Doug,
Sorry for the delay. Looks like it works, thanks!
For the record, we tried it out on an Avro file created with 1.4 (and invalid
chars in the record name):
java -jar avro-tools-1.6.0-SNAPSHOT.jar getschema ptd-sample.avro
and it successfully dumped the schema.
When we tried the same with avro-tools-1.5.1 it generated the following error:
Exception in thread "main" org.apache.avro.SchemaParseException: Illegal
character in: Cascading-Schema-0
> Support reading of files created with Avro 1.5 that use invalid characters in
> field and record names
> ----------------------------------------------------------------------------------------------------
>
> Key: AVRO-838
> URL: https://issues.apache.org/jira/browse/AVRO-838
> Project: Avro
> Issue Type: Improvement
> Affects Versions: 1.5.0, 1.5.1
> Reporter: Ken Krugler
> Assignee: Doug Cutting
> Fix For: 1.5.2
>
> Attachments: AVRO-838.patch
>
>
> Avro 1.4 had a bug that let users create schemas with invalid characters in
> field and record names.
> For example, the '-' character used to be allowed in field and record names,
> but Avro 1.5 will now fail.
> We need some kind of compatibility mode that supports schemas with invalid
> characters, so that existing files created with Avro 1.4 can be read by Avro
> 1.5.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira