Commit 050d0b2
Allow NOT NULL constraint after DEFAULT expression
ClickHouse allows both orderings:
- col Type NOT NULL DEFAULT expr
- col Type DEFAULT expr NOT NULL
Add second NOT NULL check after parsing DEFAULT/MATERIALIZED/ALIAS.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent befdafd commit 050d0b2
File tree
2 files changed
+16
-5
lines changed- parser
- testdata/02830_insert_values_time_interval
2 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4366 | 4366 | | |
4367 | 4367 | | |
4368 | 4368 | | |
| 4369 | + | |
| 4370 | + | |
| 4371 | + | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
4369 | 4384 | | |
4370 | 4385 | | |
4371 | 4386 | | |
| |||
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