public final class AlterChTable extends ChParserAbstract
Parser for ClickHouse ALTER TABLE statements. Handles table modifications including column additions, drops, updates, and constraint/index operations.
  • Constructor Details

    • AlterChTable

      public AlterChTable(CHParser.Alter_table_stmtContext ctx, ChDatabase db, ISettings settings)
      Creates a parser for ClickHouse ALTER TABLE statements.
      Parameters:
      ctx - the ANTLR parse tree context for the ALTER TABLE statement
      db - the ClickHouse database schema being processed
      settings - parsing configuration settings
  • Method Details

    • parseObject

      public void parseObject()
      Parses the ALTER TABLE statement and processes table modifications. Handles dangerous operations like UPDATE, DROP COLUMN, and ALTER COLUMN with appropriate warnings. Processes ADD operations for constraints and indexes.
      Specified by:
      parseObject in class ParserAbstract<ChDatabase>