Skip to content

Commit 6dc01a1

Browse files
sql: add system.resource_groups table and CREATE/ALTER/DROP/SHOW RESOURCE GROUP (#169805)
sql: add system.resource_groups table and CREATE/ALTER/DROP/SHOW RESOURCE GROUP
2 parents 275096c + 965908d commit 6dc01a1

103 files changed

Lines changed: 1869 additions & 217 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/generated/settings/settings-for-tenants.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,4 +446,4 @@ trace.zipkin.collector string the address of a Zipkin instance to receive trace
446446
ui.database_locality_metadata.enabled boolean true if enabled shows extended locality data about databases and tables in DB Console which can be expensive to compute application
447447
ui.default_timezone string the default timezone used to format timestamps in the ui application
448448
ui.display_timezone enumeration etc/utc the timezone used to format timestamps in the ui. This setting is deprecatedand will be removed in a future version. Use the 'ui.default_timezone' setting instead. 'ui.default_timezone' takes precedence over this setting. [etc/utc = 0, america/new_york = 1] application
449-
version version 1000026.2-upgrading-to-1000026.3-step-008 set the active cluster version in the format '<major>.<minor>' application
449+
version version 1000026.2-upgrading-to-1000026.3-step-010 set the active cluster version in the format '<major>.<minor>' application

docs/generated/settings/settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,6 @@
407407
<tr><td><div id="setting-ui-database-locality-metadata-enabled" class="anchored"><code>ui.database_locality_metadata.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>if enabled shows extended locality data about databases and tables in DB Console which can be expensive to compute</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
408408
<tr><td><div id="setting-ui-default-timezone" class="anchored"><code>ui.default_timezone</code></div></td><td>string</td><td><code></code></td><td>the default timezone used to format timestamps in the ui</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
409409
<tr><td><div id="setting-ui-display-timezone" class="anchored"><code>ui.display_timezone</code></div></td><td>enumeration</td><td><code>etc/utc</code></td><td>the timezone used to format timestamps in the ui. This setting is deprecatedand will be removed in a future version. Use the &#39;ui.default_timezone&#39; setting instead. &#39;ui.default_timezone&#39; takes precedence over this setting. [etc/utc = 0, america/new_york = 1]</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
410-
<tr><td><div id="setting-version" class="anchored"><code>version</code></div></td><td>version</td><td><code>1000026.2-upgrading-to-1000026.3-step-008</code></td><td>set the active cluster version in the format &#39;&lt;major&gt;.&lt;minor&gt;&#39;</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
410+
<tr><td><div id="setting-version" class="anchored"><code>version</code></div></td><td>version</td><td><code>1000026.2-upgrading-to-1000026.3-step-010</code></td><td>set the active cluster version in the format &#39;&lt;major&gt;.&lt;minor&gt;&#39;</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
411411
</tbody>
412412
</table>

docs/generated/sql/bnf/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ FILES = [
4747
"alter_range_relocate_stmt",
4848
"alter_range",
4949
"alter_rename_view_stmt",
50+
"alter_resource_group_stmt",
5051
"alter_role_stmt",
5152
"alter_scatter_index_stmt",
5253
"alter_scatter_stmt",
@@ -117,6 +118,7 @@ FILES = [
117118
"create_logical_replication_stream_stmt",
118119
"create_policy_stmt",
119120
"create_proc",
121+
"create_resource_group_stmt",
120122
"create_role_stmt",
121123
"create_schedule_for_backup_stmt",
122124
"create_schedule_for_changefeed_stmt",
@@ -149,6 +151,7 @@ FILES = [
149151
"drop_provisioned_roles_stmt",
150152
"drop_index",
151153
"drop_owned_by_stmt",
154+
"drop_resource_group_stmt",
152155
"drop_role_stmt",
153156
"drop_schedule_stmt",
154157
"drop_schema",
@@ -279,6 +282,8 @@ FILES = [
279282
"show_range_for_row_stmt",
280283
"show_ranges_stmt",
281284
"show_regions",
285+
"show_resource_group_stmt",
286+
"show_resource_groups_stmt",
282287
"show_roles_stmt",
283288
"show_savepoint_status",
284289
"show_schedules",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
alter_resource_group_stmt ::=
2+
'ALTER' 'RESOURCE' 'GROUP' name with_resource_group_options
3+
| 'ALTER' 'RESOURCE' 'GROUP' 'IF' 'EXISTS' name with_resource_group_options
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
alter_stmt ::=
22
alter_ddl_stmt
33
| alter_external_connection_stmt
4+
| alter_resource_group_stmt
45
| alter_role_stmt
56
| alter_virtual_cluster_stmt
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
create_resource_group_stmt ::=
2+
'CREATE' 'RESOURCE' 'GROUP' name with_resource_group_options
3+
| 'CREATE' 'RESOURCE' 'GROUP' 'IF' 'NOT' 'EXISTS' name with_resource_group_options

docs/generated/sql/bnf/create_stmt.bnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ create_stmt ::=
55
| create_changefeed_stmt
66
| create_extension_stmt
77
| create_external_connection_stmt
8+
| create_resource_group_stmt
89
| create_logical_replication_stream_stmt
910
| create_schedule_stmt
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
drop_resource_group_stmt ::=
2+
'DROP' 'RESOURCE' 'GROUP' name
3+
| 'DROP' 'RESOURCE' 'GROUP' 'IF' 'EXISTS' name

docs/generated/sql/bnf/drop_stmt.bnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ drop_stmt ::=
1414
| drop_provisioned_roles_stmt
1515
| drop_schedule_stmt
1616
| drop_external_connection_stmt
17+
| drop_resource_group_stmt
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
show_resource_group_stmt ::=
2+
'SHOW' 'RESOURCE' 'GROUP' name

0 commit comments

Comments
 (0)