()
| 1786 | } |
| 1787 | |
| 1788 | private void validateQuery() throws FrontendException { |
| 1789 | String query = buildQuery(); |
| 1790 | QueryParserDriver parserDriver = new QueryParserDriver( pigContext, scope, fileNameMap ); |
| 1791 | try { |
| 1792 | LogicalPlan plan = parserDriver.parse( query ); |
| 1793 | plan.validate(pigContext, scope, true); |
| 1794 | } catch(FrontendException ex) { |
| 1795 | scriptCache.remove( scriptCache.size() -1 ); |
| 1796 | throw ex; |
| 1797 | } |
| 1798 | } |
| 1799 | |
| 1800 | public List<String> getScriptCache() { |
| 1801 | return scriptCache; |
no test coverage detected