Inzynierka_Gwiazdy/pig_scripts/testing/test_basic_functions.pig

9 lines
356 B
Pig
Raw Normal View History

2023-12-30 21:26:06 +01:00
-- 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();