[ https://issues.apache.org/jira/browse/AVRO-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872223#comment-16872223 ]
ASF subversion and git services commented on AVRO-2440: ------------------------------------------------------- Commit 371e22468baa045b5eb5f1e05ee716d3996f520e in avro's branch refs/heads/master from Oscar WvH-K [ https://gitbox.apache.org/repos/asf?p=avro.git;h=371e224 ] AVRO-2440: Decode messages by their write schema This implements AVRO-2440 by allowing a null value for the readSchema field in the BinaryMessageDecoder. It is interpreted as "no preference", and makes the decoder use the write schema of an incoming buffer as its read schema. > Allow BinaryMessageDecoder to read (generic) records with the same schema > they were written with. > ------------------------------------------------------------------------------------------------- > > Key: AVRO-2440 > URL: https://issues.apache.org/jira/browse/AVRO-2440 > Project: Apache Avro > Issue Type: Improvement > Components: java > Reporter: Oscar Westra van Holthe - Kind > Priority: Minor > > At work we have a use case to read Avro records from Kafka, and to write them > to one of several BigQuery tables (based on compatibility). This means that > there is no single schema (with all data) that is compatible with all records > we'll be reading. > In order to allow this, we'd like to be able to use the BinaryMessageDecoder > without any read schema, and have it use the write schema of each record as > the read schema for that record. > -Pull request will follow.- > Pull request submitted. -- This message was sent by Atlassian JIRA (v7.6.3#76005)