Inzynierka_Gwiazdy/pig_scripts/system_table/generate_columns_single_dataset.pig

13 lines
533 B
Pig
Raw Normal View History

-- change the dataset id if needed
sys = load 'datasets="mocca 01f4f7bfadd9ee5ab2568d73ee7b9dda" tables="system"' using BeansTable();
sys = foreach sys generate DSID(tbid) as dsid,
DSPARAMSTRING(DSID(tbid), 'moccaid') as moccaid,
tphys,
smt,
r1,
rcob,
rchut2,
rhob,
vc;
store sys into 'name="sys_01f4f7bfadd9ee5ab2568d73ee7b9dda"' using BeansTable();