MCPcopy Create free account
hub / github.com/apache/pig / test1

Method test1

test/org/apache/pig/test/TestPigServer.java:793–806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

791 }
792
793 @Test // PIG-2059
794 public void test1() throws Throwable {
795 PigServer pig = new PigServer(cluster.getExecType(), properties);
796 pig.setValidateEachStatement(true);
797 pig.registerQuery("A = load 'x' as (u, v);") ;
798 try {
799 pig.registerQuery("B = foreach A generate $2;") ;
800 fail("Query is supposed to fail.");
801 } catch(FrontendException ex) {
802 String msg = "Out of bound access. " +
803 "Trying to access non-existent column: 2";
804 Util.checkMessageInException(ex, msg);
805 }
806 }
807
808 @Test
809 public void testDefaultPigProperties() throws Throwable {

Callers

nothing calls this directly

Calls 4

registerQueryMethod · 0.95
getExecTypeMethod · 0.45

Tested by

no test coverage detected