Skip to content

Commit cf0fbac

Browse files
authored
Rebase EN version of ALTER TABLE (#9123)
1 parent a12e1a8 commit cf0fbac

File tree

31 files changed

+411
-322
lines changed

31 files changed

+411
-322
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% if oss %}
2+
3+
Available methods for loading data into columnar tables:
4+
5+
* [{{ ydb-short-name }} CLI](../reference/ydb-cli/export-import/import-file.md)
6+
* [Bulk data upsert](../recipes/ydb-sdk/bulk-upsert.md)
7+
* [Yandex Data Transfer](https://yandex.cloud/ru/services/data-transfer)
8+
9+
{% endif %}

ydb/docs/en/core/changelog-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Release date: March 7, 2023. To update to version **22.5**, select the [Download
199199

200200
### What's new
201201

202-
* Added [changefeed configuration parameters](yql/reference/syntax/alter_table.md#changefeed-options) to transfer additional information about changes to a topic.
202+
* Added [changefeed configuration parameters](yql/reference/syntax/alter_table/changefeed.md) to transfer additional information about changes to a topic.
203203
* You can now [rename tables](concepts/datamodel/table.md#rename) that have TTL enabled.
204204
* You can now [manage the record retention period](concepts/cdc.md#retention-period).
205205

ydb/docs/en/core/concepts/_includes/secondary_indexes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ Creating an index is an asynchronous operation. If the client-server connection
5353
A secondary index can be:
5454

5555
- Created when creating a table with the YQL [`CREATE TABLE`](../../yql/reference/syntax/create_table/index.md) statement.
56-
- Added to an existing table with the YQL [`ALTER TABLE`](../../yql/reference/syntax/alter_table.md) statement or the YDB CLI [`table index add`](../../reference/ydb-cli/commands/secondary_index.md#add) command.
57-
- Deleted from an existing table with the YQL [`ALTER TABLE`](../../yql/reference/syntax/alter_table.md) statement or the YDB CLI [`table index drop`](../../reference/ydb-cli/commands/secondary_index.md#drop) command.
56+
- Added to an existing table with the YQL [`ALTER TABLE`](../../yql/reference/syntax/alter_table/index.md) statement or the YDB CLI [`table index add`](../../reference/ydb-cli/commands/secondary_index.md#add) command.
57+
- Deleted from an existing table with the YQL [`ALTER TABLE`](../../yql/reference/syntax/alter_table/index.md) statement or the YDB CLI [`table index drop`](../../reference/ydb-cli/commands/secondary_index.md#drop) command.
5858
- Deleted together with the table using the YQL [`DROP TABLE`](../../yql/reference/syntax/drop_table.md) statement or the YDB CLI `table drop` command.
5959

6060
## Purpose and use of secondary indexes {#best_practices}

ydb/docs/en/core/concepts/cdc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Using these stamps, you can arrange records from different partitions of the top
3232

3333
{% note info %}
3434

35-
By default, virtual timestamps are not uploaded to the changefeed. To enable them, use the [appropriate parameter](../yql/reference/syntax/alter_table.md#changefeed-options) when creating a changefeed.
35+
By default, virtual timestamps are not uploaded to the changefeed. To enable them, use the [appropriate parameter](../yql/reference/syntax/alter_table/changefeed.md) when creating a changefeed.
3636

3737
{% endnote %}
3838

@@ -58,7 +58,7 @@ During the scanning process, depending on the table update frequency, you might
5858

5959
## Record structure {#record-structure}
6060

61-
Depending on the [changefeed parameters](../yql/reference/syntax/alter_table.md#changefeed-options), the structure of a record may differ.
61+
Depending on the [changefeed parameters](../yql/reference/syntax/alter_table/changefeed.md), the structure of a record may differ.
6262

6363
### JSON format {#json-record-structure}
6464

@@ -223,11 +223,11 @@ Records whose retention time has expired are deleted, regardless of whether they
223223

224224
Deleting records before they are processed by the client will cause [offset](topic.md#offset) skips, which means that the offsets of the last record read from the partition and the earliest available record will differ by more than one.
225225

226-
To set up the record retention period, specify the [RETENTION_PERIOD](../yql/reference/syntax/alter_table.md#changefeed-options) parameter when creating a changefeed.
226+
To set up the record retention period, specify the [RETENTION_PERIOD](../yql/reference/syntax/alter_table/changefeed.md) parameter when creating a changefeed.
227227

228228
## Topic partitions {#topic-partitions}
229229

230-
By default, the number of [topic partitions](topic.md#partitioning) is equal to the number of table partitions. The number of topic partitions can be redefined by specifying [TOPIC_MIN_ACTIVE_PARTITIONS](../yql/reference/syntax/alter_table.md#changefeed-options) parameter when creating a changefeed.
230+
By default, the number of [topic partitions](topic.md#partitioning) is equal to the number of table partitions. The number of topic partitions can be redefined by specifying [TOPIC_MIN_ACTIVE_PARTITIONS](../yql/reference/syntax/alter_table/changefeed.md) parameter when creating a changefeed.
231231

232232
{% note info %}
233233

@@ -237,7 +237,7 @@ Currently, the ability to explicitly specify the number of topic partitions is a
237237

238238
## Creating and deleting a changefeed {#ddl}
239239

240-
You can add a changefeed to an existing table or erase it using the [ADD CHANGEFEED and DROP CHANGEFEED](../yql/reference/syntax/alter_table.md#changefeed) directives of the YQL `ALTER TABLE` statement. When erasing a table, the changefeed added to it is also deleted.
240+
You can add a changefeed to an existing table or erase it using the [ADD CHANGEFEED and DROP CHANGEFEED](../yql/reference/syntax/alter_table/changefeed.md) directives of the YQL `ALTER TABLE` statement. When erasing a table, the changefeed added to it is also deleted.
241241

242242
## CDC purpose and use {#best_practices}
243243

ydb/docs/en/core/concepts/datamodel/_includes/table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Operations are performed in isolation, the external process sees only two states
151151

152152
The speed of renaming is determined by the type of data transactions currently running against the table and doesn't depend on the table size.
153153

154-
* [Renaming a table in YQL](../../../yql/reference/syntax/alter_table.md#rename)
154+
* [Renaming a table in YQL](../../../yql/reference/syntax/alter_table/rename.md)
155155
* [Renaming a table via the CLI](../../../reference/ydb-cli/commands/tools/rename.md)
156156

157157
### Bloom filter {#bloom-filter}

ydb/docs/en/core/deploy/configuration/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The following [fault tolerance modes](../../concepts/topology.md) are available:
174174
...
175175
```
176176

177-
Each database in the cluster is assigned at least one of the available storage pools selected in the database creation operation. The names of storage pools among those assigned can be used in the `DATA` attribute when defining column groups in YQL operators [`CREATE TABLE`](../../yql/reference/syntax/create_table/family.md)/[`ALTER TABLE`](../../yql/reference/syntax/alter_table.md#column-family).
177+
Each database in the cluster is assigned at least one of the available storage pools selected in the database creation operation. The names of storage pools among those assigned can be used in the `DATA` attribute when defining column groups in YQL operators [`CREATE TABLE`](../../yql/reference/syntax/create_table/family.md)/[`ALTER TABLE`](../../yql/reference/syntax/alter_table/family.md).
178178

179179
### State Storage configuration {#domains-state}
180180

ydb/docs/en/core/dev/cdc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ With [Change Data Capture](../concepts/cdc.md) (CDC), you can track changes in t
44

55
## Enabling and disabling CDC {#add-drop}
66

7-
CDC is represented as a data schema object: a changefeed that can be added to a table or deleted from them using the [ADD CHANGEFEED and DROP CHANGEFEED](../yql/reference/syntax/alter_table.md#changefeed) directives of the YQL `ALTER TABLE` statement.
7+
CDC is represented as a data schema object: a changefeed that can be added to a table or deleted from them using the [ADD CHANGEFEED and DROP CHANGEFEED](../yql/reference/syntax/alter_table/changefeed.md) directives of the YQL `ALTER TABLE` statement.
88

99
## Reading data from a topic {#read}
1010

@@ -44,7 +44,7 @@ When writing data to a table with CDC enabled, there are additional overheads fo
4444

4545
* Making records and saving them to a changefeed.
4646
* Storing records in a changefeed.
47-
* In some [modes](../yql/reference/syntax/alter_table.md#changefeed-options) (such as `OLD_IMAGE` and `NEW_AND_OLD_IMAGES`), data needs to be pre-fetched even if a user query doesn't require this.
47+
* In some [modes](../yql/reference/syntax/alter_table/changefeed.md) (such as `OLD_IMAGE` and `NEW_AND_OLD_IMAGES`), data needs to be pre-fetched even if a user query doesn't require this.
4848

4949
As a result, queries may take longer to execute and size limits for stored data may be exceeded.
5050

ydb/docs/en/core/dev/secondary-indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This article describes the main operations with secondary indexes and gives refe
1212

1313
## Creating secondary indexes {#create}
1414

15-
A secondary index is a data schema object that can be defined when creating a table with the [`CREATE TABLE` YQL command](../yql/reference/syntax/create_table/index.md) or added to it later with the [`ALTER TABLE` YQL command](../yql/reference/syntax/alter_table.md).
15+
A secondary index is a data schema object that can be defined when creating a table with the [`CREATE TABLE` YQL command](../yql/reference/syntax/create_table/index.md) or added to it later with the [`ALTER TABLE` YQL command](../yql/reference/syntax/alter_table/index.md).
1616

1717
The [`table index add` command](../reference/ydb-cli/commands/secondary_index.md#add) is supported in the {{ ydb-short-name }} CLI.
1818

ydb/docs/en/core/integrations/migration/flyway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ As a result, `series`, `season`, and `episode` tables will be created and filled
294294

295295
![_assets/flyway-migrate-step-1.png](_assets/flyway-migrate-step-1.png)
296296

297-
Then, we evolve the schema by adding a [secondary index](../../yql/reference/syntax/alter_table.md) to the `series` table:
297+
Then, we evolve the schema by adding a [secondary index](../../yql/reference/syntax/alter_table/index.md) to the `series` table:
298298

299299
```
300300
db/migration:

ydb/docs/en/core/reference/ydb-cli/commands/_includes/secondary_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ By using the `table index` command, you can create and delete [secondary indexes
88

99
{% include [conn_options_ref.md](conn_options_ref.md) %}
1010

11-
You can also add or delete a secondary index with the [ADD INDEX and DROP INDEX](../../../../yql/reference/syntax/alter_table.md#secondary-index) directives of YQL ALTER TABLE.
11+
You can also add or delete a secondary index with the [ADD INDEX and DROP INDEX](../../../../yql/reference/syntax/alter_table/secondary_index.md) directives of YQL ALTER TABLE.
1212

1313
To learn about secondary indexes and their use in application development, see [Secondary indexes](../../../../dev/secondary-indexes.md) under "Recommendations".
1414

0 commit comments

Comments
 (0)