15 package com.cloudera.impala.analysis;
23 import com.cloudera.impala.thrift.TDropFunctionParams;
53 StringBuilder sb =
new StringBuilder(
"DROP FUNCTION");
55 sb.append(desc_.signatureString());
61 TDropFunctionParams params =
new TDropFunctionParams();
62 params.setFn_name(desc_.getFunctionName().
toThrift());
63 params.setArg_types(Type.toThrift(desc_.getArgs()));
65 params.setSignature(desc_.signatureString());
71 fnName_.analyze(analyzer);
72 fnArgs_.analyze(analyzer);
75 fnArgs_.hasVarArgs());
87 if (analyzer.getCatalog().getFunction(
final FunctionArgs fnArgs_
void analyze(Analyzer analyzer)
DropFunctionStmt(FunctionName fnName, FunctionArgs fnArgs, boolean ifExists)
final FunctionName fnName_
ArrayList< Type > getArgTypes()
static final String DB_DOES_NOT_EXIST_ERROR_MSG
TDropFunctionParams toThrift()
static final String FN_DOES_NOT_EXIST_ERROR_MSG
static final ScalarType INVALID
FunctionName getFunction()