• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AfterShip / clickhouse-sql-parser / 25881054565

14 May 2026 07:27PM UTC coverage: 51.644% (+0.02%) from 51.621%
25881054565

Pull #270

github

sharadgaur
fix: support column list before ENGINE in materialized view

ClickHouse SHOW CREATE TABLE for refreshable materialized views with
ENGINE (e.g. Memory) outputs the column list between REFRESH and ENGINE:

  CREATE MATERIALIZED VIEW db1.mv_name
  REFRESH EVERY 1 SECOND
  (
      col1 String,
      col2 Int8
  )
  ENGINE = Memory
  AS SELECT ...

The parser previously expected TO or ENGINE immediately after REFRESH
clauses. This adds support for the (columns) before ENGINE pattern by
parsing a TableSchemaClause when a left paren is encountered.

Added TableSchema field to CreateMaterializedView AST node and updated
FormatSQL to emit it before ENGINE.
Pull Request #270: fix: support column list before ENGINE in CREATE MATERIALIZED VIEW

14 of 20 new or added lines in 2 files covered. (70.0%)

1330 existing lines in 3 files now uncovered.

8261 of 15996 relevant lines covered (51.64%)

3009.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.65
/parser/parser_view.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc