Commit 4413798
committed
feat: complete database-level default connection configuration
This commit completes the database-level default connection configuration feature
allowing databases to specify default storage connection settings for FUSE tables.
Key changes:
- Fix table inheritance logic: FUSE tables inherit database defaults
- Add ALTER DATABASE SET OPTIONS with paired validation
- Implement privilege checking for ALTER DATABASE operations
- Add comprehensive SQL logic tests for feature validation
The feature enables:
- CREATE DATABASE OPTIONS (DEFAULT_STORAGE_CONNECTION = '...', DEFAULT_STORAGE_PATH = '...')
- ALTER DATABASE SET OPTIONS with paired validation (both options required)
- FUSE tables automatically inherit database connection defaults for external storage
Corrected inheritance logic where FUSE tables (external storage capable) inherit
database defaults, while other engines use their own connection mechanisms.1 parent 00dd10a commit 4413798
File tree
4 files changed
+28
-11
lines changed- src/query
- service/src/interpreters
- access
- sql/src/planner/binder/ddl
4 files changed
+28
-11
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | | - | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
1697 | 1699 | | |
1698 | 1700 | | |
1699 | 1701 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
559 | 564 | | |
560 | 565 | | |
561 | 566 | | |
562 | | - | |
563 | 567 | | |
564 | 568 | | |
565 | 569 | | |
| |||
0 commit comments