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

Method parseAndPreprocess

test/org/apache/pig/test/Util.java:1186–1193  ·  view source on GitHub ↗
(String query, PigContext pc)

Source from the content-addressed store, hash-verified

1184 }
1185
1186 public static LogicalPlan parseAndPreprocess(String query, PigContext pc) throws FrontendException {
1187 Map<String, String> fileNameMap = new HashMap<String, String>();
1188 QueryParserDriver parserDriver = new QueryParserDriver( pc, "test", fileNameMap );
1189 org.apache.pig.newplan.logical.relational.LogicalPlan lp = parserDriver.parse( query );
1190
1191 lp.validate(pc, "test", false);
1192 return lp;
1193 }
1194
1195
1196 /**

Callers 6

testGenerateStarMethod · 0.95
testEmptyBagInnerPlanMethod · 0.95

Calls 2

parseMethod · 0.95
validateMethod · 0.65

Tested by

no test coverage detected