Commit 8fce7a9
committed
Add support for CREATE QUOTA, SET DEFAULT ROLE, and MODIFY COLUMN REMOVE COMMENT
Parser changes:
- Add parseCreateQuota function returning CreateQuotaQuery
- Add parseSetRole function for SET DEFAULT ROLE statements
- Handle MODIFY COLUMN ... REMOVE COMMENT syntax
- Add FORMAT handling for SHOW GRANTS, SHOW CREATE ROLE/USER/POLICY/QUOTA/SETTINGS PROFILE
AST changes:
- Add CreateQuotaQuery struct
- Add SetRoleQuery struct
- Add Format field to ShowGrantsQuery, ShowCreateRoleQuery, ShowCreateRowPolicyQuery,
ShowCreateQuotaQuery, ShowCreateSettingsProfileQuery
Explain changes:
- Add handlers for new statement types
- Fix ColumnDeclaration to omit (children 0) when no children
- Fix ALTER command type mapping (CLEAR_COLUMN -> DROP_COLUMN, DELETE_WHERE -> DELETE)
- Fix TRUNCATE/CHECK queries to output db/table as separate identifiers
- Add FORMAT handling for DESCRIBE, SHOW queries
Fixes all 20 statements in 01702_system_query_log and many others.1 parent dbd2b5e commit 8fce7a9
File tree
78 files changed
+374
-371
lines changed- ast
- internal/explain
- parser
- testdata
- 00077_log_tinylog_stripelog
- 00716_allow_ddl
- 01018_ddl_dictionaries_create
- 01047_simple_aggregate_sizes_of_columns_bug
- 01090_zookeeper_mutations_and_insert_quorum_long
- 01200_mutations_memory_consumption
- 01292_create_user
- 01349_mutation_datetime_key
- 01358_mutation_delete_null_rows
- 01387_clear_column_default_depends
- 01388_clear_all_columns
- 01493_alter_remove_no_property_zookeeper_long
- 01493_alter_remove_properties_zookeeper
- 01493_alter_remove_properties
- 01493_alter_remove_wrong_default
- 01497_mutation_support_for_storage_memory
- 01550_mutation_subquery
- 01603_remove_column_ttl
- 01630_simple_aggregate_all_functions_in_aggregating_merge_tree
- 01630_simple_aggregate_all_functions_in_summing_merge_tree
- 01702_system_query_log
- 01745_alter_delete_view
- 01753_mutate_table_predicated_with_table
- 01821_join_table_mutation
- 01825_new_type_json_mutations
- 01851_clear_column_referenced_by_mv
- 01947_mv_subquery
- 02008_materialize_column
- 02026_describe_include_subcolumns
- 02286_vertical_merges_missed_column
- 02319_lightweight_delete_on_merge_tree_compact_parts
- 02319_lightweight_delete_on_merge_tree
- 02352_lightweight_delete
- 02416_rocksdb_delete_update
- 02441_alter_delete_and_drop_column
- 02494_query_cache_eligible_queries
- 02521_lightweight_delete_and_ttl
- 02577_keepermap_delete_update
- 02675_sparse_columns_clear_column
- 02707_keeper_map_delete_update_strict
- 02734_sparse_columns_mutation
- 02832_alter_delete_indexes_projections
- 02842_mutations_replace_non_deterministic
- 02842_truncate_database
- 02863_mutation_where_in_set_result_cache_pipeline_stuck_bug
- 02870_per_column_settings
- 02889_print_pretty_type_names
- 02932_lwd_and_mutations
- 03047_on_fly_mutations_events
- 03047_on_fly_mutations_non_deterministic_replace
- 03047_on_fly_update_delete
- 03100_lwu_10_apply_on_merges
- 03100_lwu_32_on_fly_filter
- 03100_lwu_deletes_2
- 03148_mutations_virtual_columns
- 03223_system_tables_set_not_ready
- 03250_avoid_prefetch_empty_parts
- 03256_invalid_mutation_query
- 03275_block_number_mutation
- 03275_subcolumns_in_primary_key_bug
- 03325_alter_ast_format
- 03402_adding_projection_to_temporary_table
- 03442_alter_delete_empty_part_rmt
- 03442_alter_delete_empty_part
- 03442_lightweight_deletes_on_fly
- 03636_storage_alias_basic
- 03640_multiple_mutations_with_error_with_rewrite_parts
- 03640_multiple_mutations_with_rewrite_parts
- 03653_updating_minmax_idx_after_mutation
- 03702_alter_column_update_and_delete_secondary_index_general
- 03704_function_dict_get_keys_cache_type
- 03727_tolowcardinality_nullable_cast
- 03748_tuple_of_sparse_elements_bug
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
78 files changed
+374
-371
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
708 | 714 | | |
709 | 715 | | |
710 | 716 | | |
| |||
866 | 872 | | |
867 | 873 | | |
868 | 874 | | |
| 875 | + | |
869 | 876 | | |
870 | 877 | | |
871 | 878 | | |
| |||
885 | 892 | | |
886 | 893 | | |
887 | 894 | | |
| 895 | + | |
888 | 896 | | |
889 | 897 | | |
890 | 898 | | |
891 | 899 | | |
892 | 900 | | |
893 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
894 | 912 | | |
895 | 913 | | |
896 | 914 | | |
| |||
926 | 944 | | |
927 | 945 | | |
928 | 946 | | |
| 947 | + | |
929 | 948 | | |
930 | 949 | | |
931 | 950 | | |
| |||
955 | 974 | | |
956 | 975 | | |
957 | 976 | | |
| 977 | + | |
958 | 978 | | |
959 | 979 | | |
960 | 980 | | |
| |||
985 | 1005 | | |
986 | 1006 | | |
987 | 1007 | | |
| 1008 | + | |
988 | 1009 | | |
989 | 1010 | | |
990 | 1011 | | |
991 | 1012 | | |
992 | 1013 | | |
993 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
994 | 1024 | | |
995 | 1025 | | |
996 | 1026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
| |||
140 | 149 | | |
141 | 150 | | |
142 | 151 | | |
| 152 | + | |
143 | 153 | | |
144 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
145 | 159 | | |
146 | | - | |
| 160 | + | |
147 | 161 | | |
148 | 162 | | |
149 | 163 | | |
150 | 164 | | |
151 | 165 | | |
152 | 166 | | |
153 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
154 | 174 | | |
155 | 175 | | |
156 | 176 | | |
157 | 177 | | |
158 | 178 | | |
159 | 179 | | |
| 180 | + | |
160 | 181 | | |
161 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
162 | 187 | | |
163 | | - | |
| 188 | + | |
164 | 189 | | |
165 | 190 | | |
166 | 191 | | |
| |||
181 | 206 | | |
182 | 207 | | |
183 | 208 | | |
184 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
185 | 215 | | |
186 | 216 | | |
187 | 217 | | |
| |||
285 | 315 | | |
286 | 316 | | |
287 | 317 | | |
288 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
289 | 323 | | |
290 | 324 | | |
291 | 325 | | |
| |||
0 commit comments