[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-dev
Subject: [jira] [Updated] (AVRO-1836) avro schema compatibility checking does not work for records.
From: "Yan Cui (JIRA)" <jira () apache ! org>
Date: 2016-04-28 23:40:12
Message-ID: JIRA.12963230.1461781122000.65569.1461886812924 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/AVRO-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Yan Cui updated AVRO-1836:
--------------------------
Description:
Hi Guys,
We found a problem on avro 1.8.0 when calling avro's compatibility checking.
Specifically, we used the function checkReaderWriterCompatibility,
it works with no problem when we provides simple schema, like \
oldschema={"type":"int"} schema={"type":"long"}, but when we use complicated schema, \
like oldschema={"type":"record","name":"twitter","fields":[{"name":"username","type":"string"}]}
schema={"type":"record","name":"twitter","fields":[{"name":"username","type":"string"}]}
it reports that record name(twitter in this case) cannot be redefined.
When one rename the second schema, it told me the two schema are not compatible. \
Actually, for the completed case, oldschema and schema are exactly the same, the \
output is expected to be compatible.
Do you guys have any ideas about this?
Thanks, Yan
was:
Hi Guys,
We found a problem when calling avro's compatibility checking.
Specifically, we used the function checkReaderWriterCompatibility,
it works with no problem when we provides simple schema, like \
oldschema={"type":"int"} schema={"type":"long"}, but when we use complicated schema, \
like oldschema={"type":"record","name":"twitter","fields":[{"name":"username","type":"string"}]}
schema={"type":"record","name":"twitter","fields":[{"name":"username","type":"string"}]}
it reports that record name(twitter in this case) cannot be redefined.
When one rename the second schema, it told me the two schema are not compatible. \
Actually, for the completed case, oldschema and schema are exactly the same, the \
output is expected to be compatible.
Do you guys have any ideas about this?
Thanks, Yan
> avro schema compatibility checking does not work for records.
> -------------------------------------------------------------
>
> Key: AVRO-1836
> URL: https://issues.apache.org/jira/browse/AVRO-1836
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.8.0
> Reporter: Yan Cui
> Priority: Blocker
>
> Hi Guys,
> We found a problem on avro 1.8.0 when calling avro's compatibility checking.
> Specifically, we used the function checkReaderWriterCompatibility,
> it works with no problem when we provides simple schema, like \
> oldschema={"type":"int"} schema={"type":"long"}, but when we use complicated \
> schema, like oldschema={"type":"record","name":"twitter","fields":[{"name":"username","type":"string"}]}
> schema={"type":"record","name":"twitter","fields":[{"name":"username","type":"string"}]}
> it reports that record name(twitter in this case) cannot be redefined.
> When one rename the second schema, it told me the two schema are not compatible. \
> Actually, for the completed case, oldschema and schema are exactly the same, the \
> output is expected to be compatible. Do you guys have any ideas about this?
> Thanks, Yan
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic