summaryrefslogtreecommitdiffstats
path: root/vespa-hadoop/src/test/pig/feed_multiline_operations.pig
blob: 1971270cbdccd89583249e47fc136003340055fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-- REGISTER vespa-hadoop.jar  -- Not needed in tests

-- Define short name for VespaJsonLoader
DEFINE VespaJsonLoader com.yahoo.vespa.hadoop.pig.VespaSimpleJsonLoader();

-- Define short name for VespaStorage
DEFINE VespaStorage com.yahoo.vespa.hadoop.pig.VespaStorage();

-- Load data - one column for json data
metrics = LOAD 'src/test/resources/operations_multiline_data.json' USING VespaJsonLoader() AS (data:chararray);

-- Store into Vespa
STORE metrics INTO '$ENDPOINT' USING VespaStorage();