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

Method parse

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

Source from the content-addressed store, hash-verified

1175 }
1176
1177 public static LogicalPlan parse(String query, PigContext pc) throws FrontendException {
1178 Map<String, String> fileNameMap = new HashMap<String, String>();
1179 QueryParserDriver parserDriver = new QueryParserDriver( pc, "test", fileNameMap );
1180 org.apache.pig.newplan.logical.relational.LogicalPlan lp = parserDriver.parse( query );
1181
1182 lp.validate(pc, "test", false);
1183 return lp;
1184 }
1185
1186 public static LogicalPlan parseAndPreprocess(String query, PigContext pc) throws FrontendException {
1187 Map<String, String> fileNameMap = new HashMap<String, String>();

Callers 15

testUDFgetLoadCasterMethod · 0.95
testStoreAliasMethod · 0.95
testLoaderWithSchemaMethod · 0.95
testForEachWithCast1Method · 0.95
testForEachWithCast2Method · 0.95
testForEachWithCast3Method · 0.95
testForEachWithCast4Method · 0.95
testForEachWithCast5Method · 0.95
testForEachWithCast6Method · 0.95

Calls 2

parseMethod · 0.95
validateMethod · 0.65

Tested by

no test coverage detected