Search in sources :

Example 1 with DropWMMappingDesc

use of org.apache.hadoop.hive.ql.plan.DropWMMappingDesc in project hive by apache.

the class DDLSemanticAnalyzer method analyzeDropMapping.

private void analyzeDropMapping(ASTNode ast) throws SemanticException {
    if (ast.getChildCount() != 3) {
        throw new SemanticException("Invalid syntax for drop mapping.");
    }
    String rpName = unescapeIdentifier(ast.getChild(0).getText());
    String entityType = ast.getChild(1).getText();
    String entityName = PlanUtils.stripQuotes(ast.getChild(2).getText());
    DropWMMappingDesc desc = new DropWMMappingDesc(new WMMapping(rpName, entityType, entityName));
    addServiceOutput();
    rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), desc)));
}
Also used : DDLWork(org.apache.hadoop.hive.ql.plan.DDLWork) WMMapping(org.apache.hadoop.hive.metastore.api.WMMapping) DropWMMappingDesc(org.apache.hadoop.hive.ql.plan.DropWMMappingDesc)

Aggregations

WMMapping (org.apache.hadoop.hive.metastore.api.WMMapping)1 DDLWork (org.apache.hadoop.hive.ql.plan.DDLWork)1 DropWMMappingDesc (org.apache.hadoop.hive.ql.plan.DropWMMappingDesc)1