()
| 134 | } |
| 135 | |
| 136 | @Test(expected=FrontendException.class) |
| 137 | public void testSampleScalarException() throws IOException { |
| 138 | String query = |
| 139 | "a = load '" + Util.encodeEscape(tmpfilepath) + "';" + |
| 140 | "b = sample a $0;" // reference to non scalar context is not allowed |
| 141 | ; |
| 142 | |
| 143 | Util.registerMultiLineQuery(pig, query); |
| 144 | try { |
| 145 | pig.openIterator("b"); |
| 146 | } catch (FrontendException fe) { |
| 147 | Util.checkMessageInException(fe, ScalarVariableValidator.ERR_MSG_SCALAR); |
| 148 | throw fe; |
| 149 | } |
| 150 | } |
| 151 | } |
nothing calls this directly
no test coverage detected