You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ilya Kramer (Jira)" <ji...@apache.org> on 2021/07/07 06:52:00 UTC
[jira] [Created] (AVRO-3172) Alias break when writer schema and
reader schema name differs
Ilya Kramer created AVRO-3172:
---------------------------------
Summary: Alias break when writer schema and reader schema name differs
Key: AVRO-3172
URL: https://issues.apache.org/jira/browse/AVRO-3172
Project: Apache Avro
Issue Type: Bug
Reporter: Ilya Kramer
In Java, when migrating from one name to another via alias (for example in _schema.old_ a field was named _a_, in _schema.new_ the field is renamed to _b_ with alias to _a_) the alias is not considered if the record name in _schema.old_ differs from __ _schema.new_.
This is especially painful as nothing else breaks and there's no warning issued about the change of the record name.
This issue was very annoying to isolate(from a big avro schema).
Even if this isn't strictly speaking a bug at least a warning should be issued indicating issues might arise from the record name change.
I could replicate this using a simple test case on all versions of avro from 1.8.0 to 1.10.2
--
This message was sent by Atlassian Jira
(v8.3.4#803005)