apache pig - Unable to specify schema during storage with pig scripts -


ignore above query. incorrect.

i have following pig script = load 'textinput' using pigstorage() (a0:chararray, a1:chararray, a2:chararray, a3:chararray, a4:chararray, a5:chararray, a6:chararray, a7:chararray, a8:chararray,a9:chararray); describe a; store 'output2' using pigstorage();

this works fine.

however when modify store statement store 'output3' using pigstorage() (a0:chararray, a1:chararray, a2:chararray, a3:chararray, a4:chararray, a5:chararray, a6:chararray, a7:chararray, a8:chararray,a9:chararray);

it fails below error 2013-05-04 11:49:56,296 [main] error org.apache.pig.tools.grunt.grunt - error 1200: mismatched input 'as' expecting semi_colon

you don't specify schema when storing output pig. schema of alias you're storing whatever when created it. if wished change way it's stored like

b = foreach generate (insert transformation here); store b 'output3'; 

if wished change way pigstorage writes alias disk create own storefunc


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -