15 package com.cloudera.impala.analysis;
17 import org.apache.hadoop.hive.metastore.MetaStoreUtils;
20 import com.cloudera.impala.thrift.TDropDataSourceParams;
21 import com.google.common.base.Preconditions;
32 Preconditions.checkNotNull(dataSrcName);
33 this.dataSrcName_ = dataSrcName.toLowerCase();
34 this.ifExists_ = ifExists;
48 StringBuilder sb =
new StringBuilder();
49 sb.append(
"DROP DATA SOURCE ");
TDropDataSourceParams toThrift()
void analyze(Analyzer analyzer)
static final String DATA_SRC_DOES_NOT_EXIST_ERROR_MSG
final String dataSrcName_
DropDataSrcStmt(String dataSrcName, boolean ifExists)