Inzynierka_Gwiazdy/pig_scripts/testing/test_basic_functions.pig

9 lines
356 B
Pig

-- load a single system table from a dataset
sys = load 'datasets="mocca 14bd768a5357ab95df307e58a70657ba" tables="system"' using BeansTable();
-- generate some example columns
sys = foreach sys generate rchut2, smt;
-- basic filtering
sys = filter sys by smt > 0.0;
-- store into a table
store sys into 'name="test_load_filter_store"' using BeansTable();