15 package com.cloudera.impala.analysis;
23 import com.google.common.base.Preconditions;
31 super(
false, tableName, null, null, viewDefStmt);
37 analyzer.setUseHiveColLabels(
true);
38 viewDefStmt_.analyze(analyzer);
40 Preconditions.checkState(
tableName_ != null && !tableName_.isEmpty());
42 owner_ = analyzer.getUser().getName();
45 Preconditions.checkNotNull(table);
46 if (!(table instanceof
View)) {
48 "ALTER VIEW not allowed on a table: %s.%s",
dbName_,
getTbl()));
59 StringBuilder sb =
new StringBuilder();
60 sb.append(
"ALTER VIEW ");
62 sb.append(tableName_.getDb() +
".");
64 sb.append(tableName_.getTbl());
65 sb.append(
" AS " + viewDefStmt_.toSql());
AlterViewStmt(TableName tableName, QueryStmt viewDefStmt)
static RuntimeEnv INSTANCE
void createColumnAndViewDefs(Analyzer analyzer)
final TableName tableName_
void computeLineageGraph(Analyzer analyzer)
void analyze(Analyzer analyzer)