Examples of FunctionWork


Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

 
  public void analyzeInternal(ASTNode ast, Context ctx) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    createFunctionDesc desc = new createFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
    LOG.info("analyze done");
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

      body = sa.genExprNodeDesc((ASTNode)ast.getChild(1), rowResolver);
    } else {
        body = sa.genExprNodeDesc((ASTNode)ast.getChild(2), rowResolver);
    }
    CreateMacroDesc desc = new CreateMacroDesc(functionName, macroColNames, macroColTypes, body);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

    if (throwException && FunctionRegistry.getFunctionInfo(functionName) == null) {
      throw new SemanticException(ErrorMsg.INVALID_FUNCTION.getMsg(functionName));
    }

    DropMacroDesc desc = new DropMacroDesc(functionName);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

  private void analyzeCreateFunction(ASTNode ast)
      throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    createFunctionDesc desc = new createFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

 
  private void analyzeDropFunction(ASTNode ast)
      throws SemanticException {
    String functionName = ast.getChild(0).getText();
    dropFunctionDesc desc = new dropFunctionDesc(functionName);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

  private void analyzeCreateFunction(ASTNode ast) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    CreateFunctionDesc desc = new CreateFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

    if (throwException && FunctionRegistry.getFunctionInfo(functionName) == null) {
      throw new SemanticException(ErrorMsg.INVALID_FUNCTION.getMsg(functionName));
    }

    DropFunctionDesc desc = new DropFunctionDesc(functionName);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

 
  public void analyzeInternal(CommonTree ast, Context ctx) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    createFunctionDesc desc = new createFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
    LOG.info("analyze done");
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

      body = sa.genExprNodeDesc((ASTNode)ast.getChild(1), rowResolver);
    } else {
        body = sa.genExprNodeDesc((ASTNode)ast.getChild(2), rowResolver);
    }
    CreateMacroDesc desc = new CreateMacroDesc(functionName, macroColNames, macroColTypes, body);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));

    addEntities();
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.FunctionWork

    if (throwException && FunctionRegistry.getFunctionInfo(functionName) == null) {
      throw new SemanticException(ErrorMsg.INVALID_FUNCTION.getMsg(functionName));
    }

    DropMacroDesc desc = new DropMacroDesc(functionName);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));

    addEntities();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.