Commit 9b6d607
Make ALTER TABLE SET/DROP NOT NULL and DEFAULT no-ops for DuckLake
DuckLake doesn't handle these ALTER TABLE commands well, resulting in
errors like "Cannot SET NULL on table X - the table has transaction-local
changes or no stats are available".
Treat these as no-ops since they're constraint modifications that don't
affect data storage:
- ALTER TABLE ... ALTER COLUMN ... SET NOT NULL
- ALTER TABLE ... ALTER COLUMN ... DROP NOT NULL
- ALTER TABLE ... ALTER COLUMN ... SET DEFAULT
- ALTER TABLE ... ALTER COLUMN ... DROP DEFAULT
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 306df91 commit 9b6d607
2 files changed
+19
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | | - | |
305 | | - | |
| 303 | + | |
| 304 | + | |
306 | 305 | | |
| 306 | + | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
309 | 317 | | |
310 | 318 | | |
311 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
| |||
0 commit comments