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

AfterShip / clickhouse-sql-parser / 24571285878

17 Apr 2026 02:47PM UTC coverage: 51.467% (+0.02%) from 51.449%
24571285878

Pull #265

github

sharadgaur
feat: add COMMENT support to CREATE VIEW parser

CREATE VIEW in ClickHouse supports COMMENT between the schema and AS SELECT:

  CREATE VIEW db.v (columns) COMMENT '{...}' AS SELECT ...

The parser previously failed with 'expected EOF or ; but got COMMENT'.

Changes:
- Add Comment field to CreateView struct (ast.go)
- Parse COMMENT clause in parseCreateView before AS (parser_view.go)
- Format COMMENT in CreateView.FormatSQL (format.go)
- Add test case: create_view_with_comment.sql
- Update golden files for existing view tests (new nil Comment field)
Pull Request #265: feat: add COMMENT support to CREATE VIEW parser

8 of 10 new or added lines in 2 files covered. (80.0%)

1287 existing lines in 2 files now uncovered.

8211 of 15954 relevant lines covered (51.47%)

2420.86 hits per line

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

65.83
/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