You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ashok (JIRA)" <ji...@apache.org> on 2018/02/21 23:09:06 UTC
[jira] [Created] (AVRO-2148) Avro: Schema compatibility/evolution -
attribute size change
Ashok created AVRO-2148:
---------------------------
Summary: Avro: Schema compatibility/evolution - attribute size change
Key: AVRO-2148
URL: https://issues.apache.org/jira/browse/AVRO-2148
Project: Avro
Issue Type: Improvement
Components: java
Affects Versions: 1.8.2
Reporter: Ashok
Let's assume the schema changed from V1 to V2. Currently, we can't create a merge of the two schema that makes it a compatible for both. Depending on what size we keep in the reader schema (the merged schema), you can read avro files for schema V1 or V2.
* *V1 schema:*
{ "name": "sid", "type": [ "null", { "type": "fixed", "name": "SID", "namespace": "com.int.datatype", "doc": "", *"size": 64* }
], "doc": "", "default": null, "businessLogic": "" }
* *V2 schema:*
{ "name": "sid", "type": [ "null", { "type": "fixed", "name": "SID", "namespace": "com.int.datatype", "doc": "", *"size": 16* }
], "doc": "", "default": null, "businessLogic": "" }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)