Skip to content

ClickHouse: ALTER TABLE ... ADD COLUMN ... FIRST | AFTER col fails to parse #2534

Description

@s5dsn-eqee
ALTER TABLE t ADD COLUMN c UInt8 AFTER a
-- sql parser error: Expected: end of statement, found: AFTER

ClickHouse supports this, and the parser already handles it for MySQL. parse_column_position is hardcoded to dialect_of!(MySqlDialect | GenericDialect), and this should become a Dialect trait method so ClickHouse can enable it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions