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.AlterTableContextifTableExists, 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, ifTableExistsaccept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validatepublic 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.SqlCallpublic org.apache.calcite.sql.SqlNodeList getColumnList()
public void unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec)
unparse in class SqlAlterTableCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.