Search in sources :

Example 1 with ParserException

use of org.apache.pig.parser.ParserException in project vespa by vespa-engine.

the class VespaQuerySchema method getPigSchema.

public static Schema getPigSchema(String schemaString) {
    Schema schema = null;
    schemaString = schemaString.replace("/", "_");
    schemaString = "{(" + schemaString + ")}";
    try {
        schema = Utils.getSchemaFromString(schemaString);
    } catch (ParserException e) {
        e.printStackTrace();
    }
    return schema;
}
Also used : ParserException(org.apache.pig.parser.ParserException) Schema(org.apache.pig.impl.logicalLayer.schema.Schema)

Aggregations

Schema (org.apache.pig.impl.logicalLayer.schema.Schema)1 ParserException (org.apache.pig.parser.ParserException)1