public class SqlAlterTableDropColumn extends SqlAlterTable
Example: DDL like the below for drop column.
-- drop single column
ALTER TABLE prod.db.sample DROP col1;
-- drop multiple columns
ALTER TABLE prod.db.sample DROP (col1, col2, col3);
SqlAlterTable.AlterTableContext
ifTableExists, OPERATOR, partitionSpec, tableIdentifier
Constructor and Description |
---|
SqlAlterTableDropColumn(org.apache.calcite.sql.parser.SqlParserPos pos,
org.apache.calcite.sql.SqlIdentifier tableName,
org.apache.calcite.sql.SqlNodeList columnList,
boolean ifTableExists) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.sql.SqlNodeList |
getColumnList() |
List<org.apache.calcite.sql.SqlNode> |
getOperandList() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
fullTableName, getOperator, getPartitionKVs, getPartitionSpec, getTableName, ifTableExists
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
public SqlAlterTableDropColumn(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, org.apache.calcite.sql.SqlNodeList columnList, boolean ifTableExists)
public List<org.apache.calcite.sql.SqlNode> getOperandList()
getOperandList
in class org.apache.calcite.sql.SqlCall
public org.apache.calcite.sql.SqlNodeList getColumnList()
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
unparse
in class SqlAlterTable
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.