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

Method validateQuery

src/org/apache/pig/PigServer.java:1788–1798  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

registerQueryMethod · 0.95

Calls 5

buildQueryMethod · 0.95
parseMethod · 0.95
validateMethod · 0.95
removeMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected