Commit 1970fc9
feat(clickhouse): support PARTITION BY after ORDER BY in CREATE TABLE
ClickHouse DDL allows PARTITION BY to appear after ORDER BY, which
differs from standard SQL ordering. This change makes the parser
accept both orderings when using the ClickHouseDialect or GenericDialect.
Fixes a parse failure for production ClickHouse CREATE TABLE statements
like: CREATE TABLE t (...) ENGINE = MergeTree() ORDER BY (...) PARTITION BY expr
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1097a0d commit 1970fc9
2 files changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8435 | 8435 | | |
8436 | 8436 | | |
8437 | 8437 | | |
| 8438 | + | |
| 8439 | + | |
| 8440 | + | |
| 8441 | + | |
| 8442 | + | |
| 8443 | + | |
| 8444 | + | |
| 8445 | + | |
| 8446 | + | |
| 8447 | + | |
| 8448 | + | |
8438 | 8449 | | |
8439 | 8450 | | |
8440 | 8451 | | |
| |||
8505 | 8516 | | |
8506 | 8517 | | |
8507 | 8518 | | |
8508 | | - | |
| 8519 | + | |
8509 | 8520 | | |
8510 | 8521 | | |
8511 | 8522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
236 | 258 | | |
237 | 259 | | |
238 | 260 | | |
| |||
0 commit comments