15 package com.cloudera.impala.analysis;
22 import com.cloudera.impala.thrift.TAlterTableParams;
23 import com.cloudera.impala.thrift.TTableName;
24 import com.google.common.base.Preconditions;
36 Preconditions.checkState(tableName != null && !tableName.isEmpty());
41 public String
getTbl() {
return tableName_.getTbl(); }
56 Preconditions.checkNotNull(
table_);
61 TAlterTableParams params =
new TAlterTableParams();
62 params.setTable_name(
new TTableName(
getDb(),
getTbl()));
75 "ALTER TABLE not allowed on a table produced by a data source: %s",
TAlterTableParams toThrift()
void analyze(Analyzer analyzer)
AlterTableStmt(TableName tableName)
final TableName tableName_