Commit 99534b0
Support ORDER BY in CREATE DATABASE and multiple SETTINGS clauses
Changes:
- Add parsing for ORDER BY clause in CREATE DATABASE statements
- Add QuerySettings field to CreateQuery AST for second SETTINGS clause
- Update parser to store second SETTINGS in QuerySettings
- Update explain to output QuerySettings as Set at CreateQuery level
- Fixes 02184_default_table_engine stmt56 (CREATE DATABASE ORDER BY)
- Fixes 02184_default_table_engine stmt107 (multiple SETTINGS)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6216399 commit 99534b0
File tree
4 files changed
+33
-7
lines changed- ast
- internal/explain
- parser
- testdata/02184_default_table_engine
4 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
| |||
558 | 562 | | |
559 | 563 | | |
560 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
561 | 569 | | |
562 | 570 | | |
563 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2692 | 2692 | | |
2693 | 2693 | | |
2694 | 2694 | | |
2695 | | - | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
2696 | 2702 | | |
2697 | 2703 | | |
2698 | 2704 | | |
| |||
2742 | 2748 | | |
2743 | 2749 | | |
2744 | 2750 | | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
2745 | 2767 | | |
2746 | 2768 | | |
2747 | 2769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
0 commit comments