diff --git a/docs/generated/sql/bnf/BUILD.bazel b/docs/generated/sql/bnf/BUILD.bazel index e6ccfacd7d6d..d7929f5b2c17 100644 --- a/docs/generated/sql/bnf/BUILD.bazel +++ b/docs/generated/sql/bnf/BUILD.bazel @@ -21,7 +21,6 @@ FILES = [ "alter_database_primary_region", "alter_database_set_zone_config_extension_stmt", "alter_database_set_stmt", - "alter_database_stmt", "alter_database_survival_goal_stmt", "alter_database_to_schema_stmt", "alter_ddl_stmt", @@ -34,13 +33,11 @@ FILES = [ "alter_func_dep_extension_stmt", "alter_index_partition_by", "alter_index", - "alter_index_stmt", "alter_index_visible_stmt", "alter_partition_stmt", "alter_primary_key", "alter_range_relocate_stmt", "alter_range", - "alter_range_stmt", "alter_rename_view_stmt", "alter_role_stmt", "alter_scatter_index_stmt", @@ -59,7 +56,6 @@ FILES = [ "alter_table_reset_storage_param", "alter_table_set_schema_stmt", "alter_table_set_storage_param", - "alter_table_stmt", "alter_tenant_csetting_stmt", "alter_type", "alter_view", diff --git a/docs/generated/sql/bnf/alter_database_stmt.bnf b/docs/generated/sql/bnf/alter_database_stmt.bnf deleted file mode 100644 index d71b379d8860..000000000000 --- a/docs/generated/sql/bnf/alter_database_stmt.bnf +++ /dev/null @@ -1,17 +0,0 @@ -alter_database_stmt ::= - alter_rename_database_stmt - | alter_zone_database_stmt - | alter_database_owner - | alter_database_to_schema_stmt - | alter_database_add_region_stmt - | alter_database_drop_region_stmt - | alter_database_survival_goal_stmt - | alter_database_primary_region_stmt - | alter_database_placement_stmt - | alter_database_set_stmt - | alter_database_add_super_region - | alter_database_alter_super_region - | alter_database_drop_super_region - | alter_database_set_secondary_region_stmt - | alter_database_drop_secondary_region - | alter_database_set_zone_config_extension_stmt diff --git a/docs/generated/sql/bnf/alter_index_stmt.bnf b/docs/generated/sql/bnf/alter_index_stmt.bnf deleted file mode 100644 index 0c2827a3ac8e..000000000000 --- a/docs/generated/sql/bnf/alter_index_stmt.bnf +++ /dev/null @@ -1,8 +0,0 @@ -alter_index_stmt ::= - alter_oneindex_stmt - | alter_split_index_stmt - | alter_unsplit_index_stmt - | alter_scatter_index_stmt - | alter_rename_index_stmt - | alter_zone_index_stmt - | alter_index_visible_stmt diff --git a/docs/generated/sql/bnf/alter_range_stmt.bnf b/docs/generated/sql/bnf/alter_range_stmt.bnf deleted file mode 100644 index f8a65e7db6c0..000000000000 --- a/docs/generated/sql/bnf/alter_range_stmt.bnf +++ /dev/null @@ -1,3 +0,0 @@ -alter_range_stmt ::= - alter_zone_range_stmt - | alter_range_relocate_stmt diff --git a/docs/generated/sql/bnf/alter_table_stmt.bnf b/docs/generated/sql/bnf/alter_table_stmt.bnf deleted file mode 100644 index 35225ecf5a2d..000000000000 --- a/docs/generated/sql/bnf/alter_table_stmt.bnf +++ /dev/null @@ -1,10 +0,0 @@ -alter_table_stmt ::= - alter_onetable_stmt - | alter_split_stmt - | alter_unsplit_stmt - | alter_scatter_stmt - | alter_zone_table_stmt - | alter_rename_table_stmt - | alter_table_set_schema_stmt - | alter_table_locality_stmt - | alter_table_owner_stmt diff --git a/pkg/cmd/docgen/diagrams.go b/pkg/cmd/docgen/diagrams.go index e216cfbb2378..32f507f01fa4 100644 --- a/pkg/cmd/docgen/diagrams.go +++ b/pkg/cmd/docgen/diagrams.go @@ -402,9 +402,6 @@ var specs = []stmtSpec{ replace: map[string]string{"'RENAME' 'TO' database_name": "'RENAME' 'TO' database_new_name", "'SUPER' 'REGION' name": "'SUPER' 'REGION' region_name", "'VALUES' name_list": "'VALUES' region_name_list", "var_name": "variable", "var_value": "value"}, unlink: []string{"database_new_name", "region_name_list", "variable", "value"}, }, - { - name: "alter_database_stmt", - }, { name: "alter_database_primary_region", stmt: "alter_database_primary_region_stmt", @@ -427,9 +424,6 @@ var specs = []stmtSpec{ replace: map[string]string{"standalone_index_name": "index_name", "var_name": "variable", "var_value": "value", "'RENAME' 'TO' index_name": "'RENAME' 'TO' index_new_name"}, unlink: []string{"index_new_name", "variable", "value"}, }, - { - name: "alter_index_stmt", - }, { name: "alter_range", stmt: "alter_range_stmt", @@ -441,9 +435,6 @@ var specs = []stmtSpec{ replace: map[string]string{"'RANGE' a_expr": "'RANGE' range_id"}, unlink: []string{"range_id"}, }, - { - name: "alter_range_stmt", - }, { name: "alter_table_reset_storage_param", stmt: "alter_onetable_stmt", @@ -553,9 +544,6 @@ var specs = []stmtSpec{ replace: map[string]string{"relation_expr": "table_name", "'RENAME' 'TO' table_name": "'RENAME' 'TO' table_new_name", "var_name": "variable", "var_value": "value"}, unlink: []string{"table_name", "table_new_name", "variable", "value"}, }, - { - name: "alter_table_stmt", - }, { name: "alter_table_cmds", inline: []string{"alter_table_cmd", "column_table_def", "col_qual_list", "opt_column", "opt_validate_behavior", "table_constraint", "alter_column_default", "alter_column_visible", "opt_set_data", "opt_collate", "opt_alter_column_using", "alter_column_on_update", "opt_hash_sharded", "opt_with_storage_parameter_list", "opt_drop_behavior", "audit_mode", "partition_by", "partition_by_table", "partition_by_inner", "storage_parameter_list", "storage_parameter", "storage_parameter_key_list"}, diff --git a/pkg/gen/bnf.bzl b/pkg/gen/bnf.bzl index b010ff3113c1..ad605d3f3dd8 100644 --- a/pkg/gen/bnf.bzl +++ b/pkg/gen/bnf.bzl @@ -21,7 +21,6 @@ BNF_SRCS = [ "//docs/generated/sql/bnf:alter_database_set_secondary_region_stmt.bnf", "//docs/generated/sql/bnf:alter_database_set_stmt.bnf", "//docs/generated/sql/bnf:alter_database_set_zone_config_extension_stmt.bnf", - "//docs/generated/sql/bnf:alter_database_stmt.bnf", "//docs/generated/sql/bnf:alter_database_survival_goal_stmt.bnf", "//docs/generated/sql/bnf:alter_database_to_schema_stmt.bnf", "//docs/generated/sql/bnf:alter_ddl_stmt.bnf", @@ -34,13 +33,11 @@ BNF_SRCS = [ "//docs/generated/sql/bnf:alter_func_stmt.bnf", "//docs/generated/sql/bnf:alter_index.bnf", "//docs/generated/sql/bnf:alter_index_partition_by.bnf", - "//docs/generated/sql/bnf:alter_index_stmt.bnf", "//docs/generated/sql/bnf:alter_index_visible_stmt.bnf", "//docs/generated/sql/bnf:alter_partition_stmt.bnf", "//docs/generated/sql/bnf:alter_primary_key.bnf", "//docs/generated/sql/bnf:alter_range.bnf", "//docs/generated/sql/bnf:alter_range_relocate_stmt.bnf", - "//docs/generated/sql/bnf:alter_range_stmt.bnf", "//docs/generated/sql/bnf:alter_rename_view_stmt.bnf", "//docs/generated/sql/bnf:alter_role_stmt.bnf", "//docs/generated/sql/bnf:alter_scatter_index_stmt.bnf", @@ -59,7 +56,6 @@ BNF_SRCS = [ "//docs/generated/sql/bnf:alter_table_reset_storage_param.bnf", "//docs/generated/sql/bnf:alter_table_set_schema_stmt.bnf", "//docs/generated/sql/bnf:alter_table_set_storage_param.bnf", - "//docs/generated/sql/bnf:alter_table_stmt.bnf", "//docs/generated/sql/bnf:alter_tenant_csetting_stmt.bnf", "//docs/generated/sql/bnf:alter_type.bnf", "//docs/generated/sql/bnf:alter_view.bnf", diff --git a/pkg/gen/docs.bzl b/pkg/gen/docs.bzl index c12997cedcb3..3b89e7dfe9a4 100644 --- a/pkg/gen/docs.bzl +++ b/pkg/gen/docs.bzl @@ -33,7 +33,6 @@ DOCS_SRCS = [ "//docs/generated/sql/bnf:alter_database_set_secondary_region_stmt.bnf", "//docs/generated/sql/bnf:alter_database_set_stmt.bnf", "//docs/generated/sql/bnf:alter_database_set_zone_config_extension_stmt.bnf", - "//docs/generated/sql/bnf:alter_database_stmt.bnf", "//docs/generated/sql/bnf:alter_database_survival_goal_stmt.bnf", "//docs/generated/sql/bnf:alter_database_to_schema_stmt.bnf", "//docs/generated/sql/bnf:alter_ddl_stmt.bnf", @@ -46,13 +45,11 @@ DOCS_SRCS = [ "//docs/generated/sql/bnf:alter_func_stmt.bnf", "//docs/generated/sql/bnf:alter_index.bnf", "//docs/generated/sql/bnf:alter_index_partition_by.bnf", - "//docs/generated/sql/bnf:alter_index_stmt.bnf", "//docs/generated/sql/bnf:alter_index_visible_stmt.bnf", "//docs/generated/sql/bnf:alter_partition_stmt.bnf", "//docs/generated/sql/bnf:alter_primary_key.bnf", "//docs/generated/sql/bnf:alter_range.bnf", "//docs/generated/sql/bnf:alter_range_relocate_stmt.bnf", - "//docs/generated/sql/bnf:alter_range_stmt.bnf", "//docs/generated/sql/bnf:alter_rename_view_stmt.bnf", "//docs/generated/sql/bnf:alter_role_stmt.bnf", "//docs/generated/sql/bnf:alter_scatter_index_stmt.bnf", @@ -71,7 +68,6 @@ DOCS_SRCS = [ "//docs/generated/sql/bnf:alter_table_reset_storage_param.bnf", "//docs/generated/sql/bnf:alter_table_set_schema_stmt.bnf", "//docs/generated/sql/bnf:alter_table_set_storage_param.bnf", - "//docs/generated/sql/bnf:alter_table_stmt.bnf", "//docs/generated/sql/bnf:alter_tenant_csetting_stmt.bnf", "//docs/generated/sql/bnf:alter_type.bnf", "//docs/generated/sql/bnf:alter_view.bnf",