()
| 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 { |
nothing calls this directly
no test coverage detected