Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.9.0
-
None
-
None
-
Patch Available
Description
Running the following script yields a RuntimeException. If the schema is changed to contain two fields, then A can be stored successfully.
REGISTER 'piggybank.jar' REGISTER 'avro-1.5.4.jar' REGISTER 'json-simple-1.1.jar' A = load 'input.txt' AS (name1:chararray, name2:chararray); B = foreach A generate $0; store B into './output' using org.apache.pig.piggybank.storage.avro.AvroStorage( '{"schema": {"type": "record", "name": "main", "fields": [{"name": "name", "type": ["null", "string"]}]}}');
Attachments
Attachments
Issue Links
- is duplicated by
-
PIG-3322 AVRO: AvroStorage give NPE on reading file with union as top level schema
- Closed