Search in sources :

Example 1 with DropWMTriggerDesc

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

the class DDLSemanticAnalyzer method analyzeDropTrigger.

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

Aggregations

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