[
https://issues.apache.org/jira/browse/AVRO-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541349#comment-17541349
]
Christophe Le Saec commented on AVRO-3520:
------------------------------------------
And about reading 2 avro files with different schema, in parallel in 2
different thread ?
[As the cache for accessors is
static|https://github.com/apache/avro/blob/ff4eaf32c1fb4f04770a6ad39f2769cc907006e4/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java#L347],
it should throws error ?
If you change API of CustomEncoding.read method to
{code:java}
CustomEncoding.read(Object reuse, Decoder in, Schema.Field f){code}
you could extract real schema from field f, that come directly from input file,
so without any confusion ?
> CustomEncoding doesn't expose the read schema
> ---------------------------------------------
>
> Key: AVRO-3520
> URL: https://issues.apache.org/jira/browse/AVRO-3520
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.11.0
> Reporter: Colin
> Priority: Major
> Labels: pull-request-available
> Attachments: patchTest.txt
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently it is not possible to detect a schema change when using
> `CustomEncoding<T>`.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)