.append("%default input 'foo';")
.append("A = LOAD '$input' USING mock.Storage() AS (f1:chararray,f2:int,f3:chararray);")
.append("B = order A by f1,f2,f3 DESC;")
.append("STORE B INTO 'bar' USING mock.Storage();");
pigServer.registerScript(IOUtils.toInputStream(script));
fail();
} catch (Exception e) {
// We check RuntimeException here and not FrontendException as Pig wraps the error from Preprocessor
// within RuntimeException
Util.assertExceptionAndMessage(RuntimeException.class, e,