Commit c104ce8
committed
Accept keywords as index type names in ALTER ADD INDEX
The parser was only accepting identifiers (token.IDENT) for index type
names like "set" in "ADD INDEX idx c TYPE set(0)". However, "set" is
tokenized as a keyword (token.SET). This fix allows keywords to be used
as index type names and AFTER index names, matching ClickHouse behavior.
Fixes tests:
- 01932_alter_index_with_order (stmt5, stmt6)
- 03629_storage_s3_disallow_index_alter (stmt3)
- 02131_skip_index_not_materialized (stmt4)1 parent f0aac10 commit c104ce8
4 files changed
Lines changed: 7 additions & 18 deletions
File tree
- parser
- testdata
- 01932_alter_index_with_order
- 02131_skip_index_not_materialized
- 03629_storage_s3_disallow_index_alter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5305 | 5305 | | |
5306 | 5306 | | |
5307 | 5307 | | |
| 5308 | + | |
5308 | 5309 | | |
5309 | 5310 | | |
5310 | | - | |
| 5311 | + | |
5311 | 5312 | | |
5312 | 5313 | | |
5313 | 5314 | | |
| |||
5339 | 5340 | | |
5340 | 5341 | | |
5341 | 5342 | | |
5342 | | - | |
| 5343 | + | |
| 5344 | + | |
5343 | 5345 | | |
5344 | 5346 | | |
5345 | 5347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments