Commit 0d9f7c9
Add ALTER TABLE MODIFY QUERY support (#123)
Added parsing and explain support for the ALTER TABLE MODIFY QUERY
statement which modifies the SELECT query of a materialized view.
Changes:
- Added AlterModifyQuery command type to ast/ast.go
- Added Query field to AlterCommand struct
- Added parsing logic for MODIFY QUERY in parser.go
- Added explain output handling in statements.go
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7bf233f commit 0d9f7c9
File tree
10 files changed
+24
-35
lines changed- ast
- internal/explain
- parser
- testdata
- 01019_alter_materialized_view_query
- 02834_alter_exception
- 02931_alter_materialized_view_query_inconsistent
- 03002_modify_query_cte
- 03022_alter_materialized_view_query_has_inner_table
- 03243_check_for_nullable_nothing_in_alter
- 03740_alter_modify_query_dict_name_in_cse
10 files changed
+24
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
| |||
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
| 706 | + | |
705 | 707 | | |
706 | 708 | | |
707 | 709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
1934 | 1939 | | |
1935 | 1940 | | |
1936 | 1941 | | |
| |||
2192 | 2197 | | |
2193 | 2198 | | |
2194 | 2199 | | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
2195 | 2205 | | |
2196 | 2206 | | |
2197 | 2207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5809 | 5809 | | |
5810 | 5810 | | |
5811 | 5811 | | |
| 5812 | + | |
| 5813 | + | |
| 5814 | + | |
| 5815 | + | |
| 5816 | + | |
5812 | 5817 | | |
5813 | 5818 | | |
5814 | 5819 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
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