Commit 71bc41d
committed
fix: support COMMENT before AS SELECT in CREATE MATERIALIZED VIEW
ClickHouse 26.2+ changed SHOW CREATE TABLE output to place COMMENT
before AS SELECT, while 25.x places it after. The parser only
supported COMMENT after AS SELECT, causing parse failures on 26.2+.
Now tries COMMENT in both positions:
- Before AS SELECT (ClickHouse 26.2+ SHOW CREATE TABLE format)
- After AS SELECT (ClickHouse 25.x SHOW CREATE TABLE format)
Fixes #2611 parent 5a72214 commit 71bc41d
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
| |||
150 | 159 | | |
151 | 160 | | |
152 | 161 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
156 | 169 | | |
157 | | - | |
158 | 170 | | |
159 | 171 | | |
160 | 172 | | |
| |||
0 commit comments