[
https://issues.apache.org/jira/browse/AVRO-1533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049741#comment-14049741
]
Martin Kleppmann commented on AVRO-1533:
----------------------------------------
Only just saw this, sorry for the delay. I am wondering what this means for
validation of schema compatibility, e.g. AVRO-1315. If a "bytes" field is
changed to "string", and thus runtime errors are possible due to invalid UTF-8,
should the schemas be considered compatible? If people are going to understand
"validation succeeded" as "guaranteed no runtime errors", this is potentially
an issue.
> permit promotions between string and bytes
> ------------------------------------------
>
> Key: AVRO-1533
> URL: https://issues.apache.org/jira/browse/AVRO-1533
> Project: Avro
> Issue Type: New Feature
> Components: java
> Reporter: Doug Cutting
> Assignee: Doug Cutting
> Fix For: 1.7.7
>
> Attachments: AVRO-1533.patch, AVRO-1533.patch
>
>
> Avro strings are a subset of bytes, so promoting from string to bytes is
> lossless and should be possible. Promotion from bytes to strings may cause
> problems, as not all byte strings are valid UTF8, but it also might be useful.
--
This message was sent by Atlassian JIRA
(v6.2#6252)