Skip to content

Docs: update description of serial #19443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

shnikd
Copy link
Collaborator

@shnikd shnikd commented Jun 6, 2025

@shnikd shnikd requested a review from a team as a code owner June 6, 2025 13:00
Copy link

github-actions bot commented Jun 6, 2025

🟢 2025-06-06 13:10:22 UTC The validation of the Pull Request description is successful.

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 13:02:07 UTC Pre-commit check linux-x86_64-relwithdebinfo for b1a58d3 has started.
2025-06-06 13:02:19 UTC Artifacts will be uploaded here
2025-06-06 13:04:37 UTC ya make is running...
🟢 2025-06-06 13:04:42 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 13:04:48 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 13:02:18 UTC Pre-commit check linux-x86_64-release-asan for b1a58d3 has started.
2025-06-06 13:02:30 UTC Artifacts will be uploaded here
2025-06-06 13:04:48 UTC ya make is running...
🟢 2025-06-06 13:04:54 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 13:04:59 UTC Build successful.

@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jun 6, 2025
@shnikd shnikd force-pushed the YDBDOCS-1142-serial branch from 4a3ee88 to 8f4234b Compare June 6, 2025 13:11
Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 13:13:19 UTC Pre-commit check linux-x86_64-release-asan for 33df5ec has started.
2025-06-06 13:13:29 UTC Artifacts will be uploaded here
2025-06-06 13:15:52 UTC ya make is running...
🟢 2025-06-06 13:15:57 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 13:16:03 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 13:14:25 UTC Pre-commit check linux-x86_64-relwithdebinfo for 33df5ec has started.
2025-06-06 13:14:36 UTC Artifacts will be uploaded here
2025-06-06 13:16:56 UTC ya make is running...
🟢 2025-06-06 13:17:01 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 13:17:07 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

❌ Documentation build

Revision build failed

Build logs

Errors (3)

❌ Cannot read properties of undefined (reading 'openCondition')

❌ Link is unreachable: en/reference/ydb-cli/workload-query.md in en/changelog-cli.md.

❌ Link is unreachable: ru/reference/ydb-cli/workload-query.md in ru/changelog-cli.md.

Warnings (8)

⚠️ Title not found: ./index.md in ru/yql/reference/syntax/create_table/with.md

⚠️ en/yql/reference/types/serial.md: 67: MD034 / no-bare-urls Bare URL used [Context: "alice@example.com"]

⚠️ en/yql/reference/types/serial.md: 68: MD034 / no-bare-urls Bare URL used [Context: "bob@example.com"]

⚠️ en/yql/reference/types/serial.md: 69: MD034 / no-bare-urls Bare URL used [Context: "john@example.com"]

⚠️ ru/yql/reference/syntax/alter-sequence.md: 5: MD026 / no-trailing-punctuation Trailing punctuation in heading [Punctuation: ':']

⚠️ ru/yql/reference/types/serial.md: 72: MD034 / no-bare-urls Bare URL used [Context: "alice@example.com"]

⚠️ ru/yql/reference/types/serial.md: 73: MD034 / no-bare-urls Bare URL used [Context: "bob@example.com"]

⚠️ ru/yql/reference/types/serial.md: 74: MD034 / no-bare-urls Bare URL used [Context: "john@example.com"]

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 13:40:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for 92b592c has started.
2025-06-06 13:41:02 UTC Artifacts will be uploaded here
2025-06-06 13:43:33 UTC ya make is running...
🟢 2025-06-06 13:43:39 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 13:43:45 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 13:43:14 UTC Pre-commit check linux-x86_64-release-asan for 92b592c has started.
2025-06-06 13:43:25 UTC Artifacts will be uploaded here
2025-06-06 13:45:52 UTC ya make is running...
🟢 2025-06-06 13:45:58 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 13:46:04 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

❌ Documentation build

Revision build failed

Build logs

Errors (2)

❌ Link is unreachable: en/reference/ydb-cli/workload-query.md in en/changelog-cli.md.

❌ Link is unreachable: ru/reference/ydb-cli/workload-query.md in ru/changelog-cli.md.

@shnikd shnikd force-pushed the YDBDOCS-1142-serial branch from bd51288 to 30814b1 Compare June 6, 2025 14:07
@shnikd shnikd force-pushed the YDBDOCS-1142-serial branch from 30814b1 to 326f594 Compare June 6, 2025 14:07
Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 14:11:03 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0e00772 has started.
2025-06-06 14:11:15 UTC Artifacts will be uploaded here
2025-06-06 14:13:43 UTC ya make is running...
🟢 2025-06-06 14:13:49 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 14:13:55 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 14:11:12 UTC Pre-commit check linux-x86_64-release-asan for 0e00772 has started.
2025-06-06 14:11:24 UTC Artifacts will be uploaded here
2025-06-06 14:13:52 UTC ya make is running...
🟢 2025-06-06 14:13:58 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 14:14:04 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

✅ Documentation build

Revision built successfully
Revision preview link

@gridnevvvit gridnevvvit requested a review from Copilot June 6, 2025 15:08
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enriches the documentation around the new Serial types by expanding descriptions, adding syntax references, and updating navigation entries.

  • Expanded Serial type docs with Sequence behavior, parameters, and overflow notes
  • Introduced ALTER SEQUENCE syntax reference and linked it in ToC/index files
  • Enhanced examples to recommend hash-based partitioning and updated CLI guidance for exporting serial columns

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ydb/docs/ru/core/yql/reference/types/serial.md Expanded Russian Serial docs with Sequence details and examples
ydb/docs/ru/core/yql/reference/syntax/toc_i.yaml Added ALTER SEQUENCE to Russian syntax ToC
ydb/docs/ru/core/yql/reference/syntax/index.md Exposed ALTER SEQUENCE in Russian syntax index
ydb/docs/ru/core/yql/reference/syntax/create_table/index.md Updated Russian CREATE TABLE type allowance text
ydb/docs/ru/core/yql/reference/syntax/alter-sequence.md New Russian ALTER SEQUENCE syntax reference
ydb/docs/en/core/yql/reference/types/toc_i.yaml Added Serial entry to English types ToC
ydb/docs/en/core/yql/reference/types/serial.md New English Serial type documentation
ydb/docs/en/core/yql/reference/types/index.md Linked Serial in English types index
ydb/docs/en/core/yql/reference/syntax/toc_i.yaml Added ALTER SEQUENCE to English syntax ToC
ydb/docs/en/core/yql/reference/syntax/index.md Exposed ALTER SEQUENCE in English syntax index
ydb/docs/en/core/yql/reference/syntax/create_table/index.md Updated English CREATE TABLE type allowance text
ydb/docs/en/core/yql/reference/syntax/alter-sequence.md New English ALTER SEQUENCE syntax reference
ydb/docs/en/core/reference/ydb-cli/export-import/_includes/tools_dump.md Clarified --avoid-copy impact on serial exports
Comments suppressed due to low confidence (2)

ydb/docs/en/core/reference/ydb-cli/export-import/_includes/tools_dump.md:54

  • [nitpick] Link text [serial] should match the title casing used elsewhere (Serial). Consider updating link text to [Serial] for consistency.
`--avoid-copy`: Do not create a snapshot before dumping. The default consistency snapshot might be inapplicable in some cases (for example, for tables with external blobs).{% if feature_serial %} For correct export of tables with [serial](../../../../yql/reference/types/serial.md) types, this parameter should not be set. Otherwise, the current value of the sequence generator will not be copied, and new values will start from the initial value, which may lead to primary key conflicts.{% endif %}

shnikd and others added 2 commits June 6, 2025 19:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 16:05:30 UTC Pre-commit check linux-x86_64-relwithdebinfo for fbaf0dd has started.
2025-06-06 16:05:41 UTC Artifacts will be uploaded here
2025-06-06 16:08:05 UTC ya make is running...
🟢 2025-06-06 16:08:11 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 16:08:17 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

2025-06-06 16:05:34 UTC Pre-commit check linux-x86_64-release-asan for fbaf0dd has started.
2025-06-06 16:05:45 UTC Artifacts will be uploaded here
2025-06-06 16:08:05 UTC ya make is running...
🟢 2025-06-06 16:08:10 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-06 16:08:16 UTC Build successful.

Copy link

github-actions bot commented Jun 6, 2025

✅ Documentation build

Revision built successfully
Revision preview link

Co-authored-by: ElenaAfina <144937430+ElenaAfina@users.noreply.github.com>
@ydbot
Copy link
Collaborator

ydbot commented Jun 9, 2025

🔄 New commits pushed — @ElenaAfina please take a look.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 14:18:09 UTC Pre-commit check linux-x86_64-relwithdebinfo for 31551cb has started.
2025-06-09 14:18:20 UTC Artifacts will be uploaded here
2025-06-09 14:20:39 UTC ya make is running...
🟢 2025-06-09 14:20:44 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 14:20:50 UTC Build successful.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 14:18:22 UTC Pre-commit check linux-x86_64-release-asan for 31551cb has started.
2025-06-09 14:18:32 UTC Artifacts will be uploaded here
2025-06-09 14:20:52 UTC ya make is running...
🟢 2025-06-09 14:20:57 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 14:21:04 UTC Build successful.

Copy link

github-actions bot commented Jun 9, 2025

✅ Documentation build

Revision built successfully
Revision preview link

Co-authored-by: ElenaAfina <144937430+ElenaAfina@users.noreply.github.com>
Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 22:22:10 UTC Pre-commit check linux-x86_64-release-asan for 0db5886 has started.
2025-06-09 22:22:25 UTC Artifacts will be uploaded here
2025-06-09 22:24:54 UTC ya make is running...
🟢 2025-06-09 22:25:00 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 22:25:06 UTC Build successful.

@ydbot
Copy link
Collaborator

ydbot commented Jun 9, 2025

🔄 New commits pushed — @ElenaAfina please take a look.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 22:22:15 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0db5886 has started.
2025-06-09 22:22:28 UTC Artifacts will be uploaded here
2025-06-09 22:24:55 UTC ya make is running...
🟢 2025-06-09 22:25:01 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 22:25:07 UTC Build successful.

@shnikd shnikd requested a review from ElenaAfina June 9, 2025 22:26
@ydbot
Copy link
Collaborator

ydbot commented Jun 9, 2025

🔄 New commits pushed — @ElenaAfina please take a look.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 22:28:49 UTC Pre-commit check linux-x86_64-release-asan for 40ad88e has started.
2025-06-09 22:29:01 UTC Artifacts will be uploaded here
2025-06-09 22:31:29 UTC ya make is running...
🟢 2025-06-09 22:31:35 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 22:31:41 UTC Build successful.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 22:29:08 UTC Pre-commit check linux-x86_64-relwithdebinfo for 40ad88e has started.
2025-06-09 22:29:20 UTC Artifacts will be uploaded here
2025-06-09 22:31:47 UTC ya make is running...
🟢 2025-06-09 22:31:53 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 22:31:59 UTC Build successful.

Copy link

github-actions bot commented Jun 9, 2025

✅ Documentation build

Revision built successfully
Revision preview link

Build logs

Warnings (2)

⚠️ Incorrect syntax for notes, file en/yql/reference/types/serial.md

⚠️ Incorrect syntax for notes, file ru/yql/reference/types/serial.md

@ydbot
Copy link
Collaborator

ydbot commented Jun 9, 2025

🔄 New commits pushed — @ElenaAfina please take a look.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 22:51:34 UTC Pre-commit check linux-x86_64-relwithdebinfo for 8d7ea67 has started.
2025-06-09 22:51:45 UTC Artifacts will be uploaded here
2025-06-09 22:54:06 UTC ya make is running...
🟢 2025-06-09 22:54:12 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 22:54:18 UTC Build successful.

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 22:53:03 UTC Pre-commit check linux-x86_64-release-asan for 8d7ea67 has started.
2025-06-09 22:53:15 UTC Artifacts will be uploaded here
2025-06-09 22:55:37 UTC ya make is running...
🟢 2025-06-09 22:55:43 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-09 22:55:50 UTC Build successful.

@ydbot
Copy link
Collaborator

ydbot commented Jun 11, 2025

Hey @ElenaAfina, it has been 26 business-hours since the author's last update, could you please review?

@ydbot
Copy link
Collaborator

ydbot commented Jun 12, 2025

Hey @ElenaAfina, it has been 56 business-hours since the author's last update, could you please review?

@ydbot
Copy link
Collaborator

ydbot commented Jun 13, 2025

Hey @ElenaAfina, it has been 86 business-hours since the author's last update, could you please review?

@ydbot
Copy link
Collaborator

ydbot commented Jun 16, 2025

Hey @ElenaAfina, it has been 116 business-hours since the author's last update, could you please review?

@@ -0,0 +1,55 @@
# ALTER SEQUENCE

Modifies parameters of an existing `Sequence` object associated with a [Serial](../types/serial.md) column.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add sequence to glossary.md and make "sequence" a link to its definition. It shouldn't be in backticks.

@@ -0,0 +1,55 @@
# ALTER SEQUENCE

Modifies parameters of an existing `Sequence` object associated with a [Serial](../types/serial.md) column.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicitly explain that sequences can't be created on their own and appear as part of the implementation of table columns with the Serial data type.

| 987654321 | `bob@example.com` | Bob | 2 |
| 111111111 | `john@example.com` | John | 3 |

You can also explicitly specify a value for the `Serial` column during insertion, for example, when restoring data. In this case, the insertion will work like with a regular integer column, and the `Sequence` will not be affected:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This belongs to a generic description of inserting into columns with Serial type and is not specific to this example.

Also, it sounds like this needs to explicitly say that doing so without adjusting the sequence position is likely to result in a primary key conflict either immediately or at a random moment in the future when the sequence will catch up with the inserted value. Or is it smart enough to transparently step over occupied values?

Co-authored-by: Ivan Blinkov <ivan@blinkov.ru>
Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 18:53:52 UTC Pre-commit check linux-x86_64-release-asan for 24501ce has started.
2025-06-17 18:54:06 UTC Artifacts will be uploaded here
2025-06-17 18:56:34 UTC ya make is running...
🟢 2025-06-17 18:56:40 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-17 18:56:46 UTC Build successful.

@ydbot
Copy link
Collaborator

ydbot commented Jun 17, 2025

🔄 New commits pushed — @ElenaAfina please take a look.

Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 18:56:07 UTC Pre-commit check linux-x86_64-relwithdebinfo for 24501ce has started.
2025-06-17 18:56:36 UTC Artifacts will be uploaded here
2025-06-17 18:59:41 UTC ya make is running...
🟢 2025-06-17 18:59:47 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-06-17 18:59:53 UTC Build successful.

Copy link

❌ Documentation build

Revision build failed

Build logs

Errors (1)

❌ Link is unreachable: en/yql/reference/syntax/create-table.md in en/yql/reference/syntax/alter-sequence.md.

Warnings (1)

⚠️ Title not found: create-table.md in en/yql/reference/syntax/alter-sequence.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants