Revision 36307
Added by Marek Horst about 9 years ago
union2.pig | ||
---|---|---|
1 | 1 |
define avro_load_input |
2 | 2 |
org.apache.pig.piggybank.storage.avro.AvroStorage( |
3 |
'input_schema_class', '$schema_input');
|
|
3 |
'schema', '$schema_input');
|
|
4 | 4 |
|
5 | 5 |
define avro_store_output |
6 | 6 |
org.apache.pig.piggybank.storage.avro.AvroStorage( |
7 | 7 |
'index', '0', |
8 |
'output_schema_class', '$schema_output');
|
|
8 |
'schema', '$schema_output');
|
|
9 | 9 |
|
10 | 10 |
input1 = load '$input_1' using avro_load_input; |
11 | 11 |
input2 = load '$input_2' using avro_load_input; |
Also available in: Unified diff
#1257 dropping schema generation related hacks in all PIG modules, switching to literal schema parameters