Class SqlAddPartitions

java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.flink.sql.parser.ddl.SqlAlterTable
org.apache.flink.sql.parser.ddl.SqlAddPartitions
All Implemented Interfaces:
Cloneable

public class SqlAddPartitions extends SqlAlterTable
ALTER TABLE DDL to add partitions to a table.
  • Constructor Details

    • SqlAddPartitions

      public SqlAddPartitions(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier tableName, boolean ifPartitionNotExists, List<org.apache.calcite.sql.SqlNodeList> partSpecs, List<org.apache.calcite.sql.SqlNodeList> partProps)
  • Method Details

    • ifPartitionNotExists

      public boolean ifPartitionNotExists()
    • getPartSpecs

      public List<org.apache.calcite.sql.SqlNodeList> getPartSpecs()
    • getPartitionKVs

      public LinkedHashMap<String,String> getPartitionKVs(int i)
    • getPartProps

      public List<org.apache.calcite.sql.SqlNodeList> getPartProps()
    • getOperandList

      @Nonnull public List<org.apache.calcite.sql.SqlNode> getOperandList()
      Specified by:
      getOperandList in class org.apache.calcite.sql.SqlCall
    • unparse

      public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
      Overrides:
      unparse in class SqlAlterTable