Inzynierka_Gwiazdy/pig_scripts/testing/test_generate_for_join.pig

9 lines
444 B
Pig
Raw Permalink Normal View History

2023-12-30 21:26:06 +01:00
-- load system table from a single dataset
sys = load 'datasets="mocca 01f4f7bfadd9ee5ab2568d73ee7b9dda" tables="system"' using BeansTable();
-- generate only the needed columns for this test
sys = foreach sys generate DSID(tbid) as dsid,
DSPARAMSTRING(DSID(tbid), 'moccaid') as moccaid,
tphys;
-- store the data
store sys into 'name="test_data_for_join_01f4f7bfadd9ee5ab2568d73ee7b9dda"' using BeansTable();