Affects Version/s: None
Fix Version/s: 0.10.0
Release Note:AvroStorage support for using a schema from an Avro schema file.
Reading data via PigStorage and writing it via AvroStorage fails with an exception like this
java.lang.ClassCastException: org.apache.pig.data.BinSedesTuple cannot be cast to org.apache.avro.generic.IndexedRecord
The Pig script in this section of the documentation shows an example like this that fails:
A workaround currently exists to produce avro from TSVs like this:
This is redundant though and data and same seem to indicate the same thing. This approach also requires an existing avro data file to exist. This patch will make the following alternate constructor syntax's work as well.
- Read schema from an existing data file:
- Read schema from an existing schema file: