Commit 9902d02
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 9550e93 commit 9902d02
2 files changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8564 | 8564 | | |
8565 | 8565 | | |
8566 | 8566 | | |
| 8567 | + | |
| 8568 | + | |
| 8569 | + | |
| 8570 | + | |
| 8571 | + | |
| 8572 | + | |
| 8573 | + | |
| 8574 | + | |
| 8575 | + | |
| 8576 | + | |
| 8577 | + | |
8567 | 8578 | | |
8568 | 8579 | | |
8569 | 8580 | | |
| |||
8634 | 8645 | | |
8635 | 8646 | | |
8636 | 8647 | | |
8637 | | - | |
| 8648 | + | |
8638 | 8649 | | |
8639 | 8650 | | |
8640 | 8651 | | |
| |||
| 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