Commit b40d286
fix(dictionaries): parse DDL clauses by keyword instead of by line
Replaces line-by-line splitting in dicts_ddl_equivalent with keyword-based
clause extraction (PRIMARY KEY, SOURCE, LAYOUT, LIFETIME, SETTINGS). This
prevents multi-line SOURCE clauses (e.g. HTTP/MySQL external sources) from
being interleaved with unrelated clauses during sorting, which would cause
permanent false mismatches on every reconciliation cycle.
Also updates the drift test to insert the extra column inside the column
block (inside parens) — the correct location for dictionary column definitions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ddc4e02 commit b40d286
1 file changed
Lines changed: 44 additions & 7 deletions
Lines changed: 44 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
171 | 207 | | |
172 | 208 | | |
173 | 209 | | |
| |||
2228 | 2264 | | |
2229 | 2265 | | |
2230 | 2266 | | |
2231 | | - | |
| 2267 | + | |
| 2268 | + | |
2232 | 2269 | | |
2233 | | - | |
| 2270 | + | |
2234 | 2271 | | |
2235 | 2272 | | |
2236 | 2273 | | |
| |||
0 commit comments