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

AfterShip / clickhouse-sql-parser / 33878941170
56%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2026 01:36PM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2026 01:35PM UTC coverage: 56.167% (+0.03%) from 56.14%
33878941170

push

github

web-flow
Support SETTINGS in ALTER TABLE ADD INDEX and fix IF NOT EXISTS placement (#319)

ADD INDEX had no SETTINGS clause, so a statement such as

  ALTER TABLE t ADD INDEX IF NOT EXISTS idx c TYPE minmax
    GRANULARITY 1 SETTINGS alter_sync = 2

failed to parse, while ADD COLUMN and the partition clauses already
accepted one. Parse it the same way they do.

The formatter also wrote the clause as `ADD IF NOT EXISTS INDEX`, which
ClickHouse rejects, so formatted output could not be parsed again. Split
the part of TableIndex.FormatSQL that follows the INDEX keyword so
ALTER TABLE can emit `ADD INDEX IF NOT EXISTS` instead.

Both forms were verified against clickhouse-local 26.8.2.7.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

19 of 27 new or added lines in 4 files covered. (70.37%)

1 existing line in 1 file now uncovered.

9568 of 17035 relevant lines covered (56.17%)

4074.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
18.1
0.02% parser/ast.go
2
73.3
0.02% parser/parser_alter.go
2
43.15
-0.02% parser/walk.go

Coverage Regressions

Lines Coverage ∆ File
1
18.1
0.02% parser/ast.go
Jobs
ID Job ID Ran Files Coverage
1 33878941170.1 04 Sep 2026 01:36PM UTC 17
56.17
GitHub Action Run
Source Files on build 33878941170
  • Tree
  • List 17
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d05148bb on github
  • Prev Build on master (#33618398997)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc