Search in sources :

Example 1 with DropWMPoolDesc

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

the class DDLSemanticAnalyzer method analyzeDropPool.

private void analyzeDropPool(ASTNode ast) throws SemanticException {
    if (ast.getChildCount() != 2) {
        throw new SemanticException("Invalid syntax for drop pool.");
    }
    String rpName = unescapeIdentifier(ast.getChild(0).getText());
    String poolPath = poolPath(ast.getChild(1));
    DropWMPoolDesc desc = new DropWMPoolDesc(rpName, poolPath);
    addServiceOutput();
    rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), desc)));
}
Also used : DropWMPoolDesc(org.apache.hadoop.hive.ql.plan.DropWMPoolDesc) DDLWork(org.apache.hadoop.hive.ql.plan.DDLWork)

Aggregations

DDLWork (org.apache.hadoop.hive.ql.plan.DDLWork)1 DropWMPoolDesc (org.apache.hadoop.hive.ql.plan.DropWMPoolDesc)1