Skip to content

functions-and-operators, releases: clarify TIDB_DECODE_SQL_DIGESTS wording (#23686) - #23754

Open
ti-chi-bot wants to merge 5 commits into
pingcap:release-8.5from
ti-chi-bot:cherry-pick-23686-to-release-8.5
Open

functions-and-operators, releases: clarify TIDB_DECODE_SQL_DIGESTS wording (#23686)#23754
ti-chi-bot wants to merge 5 commits into
pingcap:release-8.5from
ti-chi-bot:cherry-pick-23686-to-release-8.5

Conversation

@ti-chi-bot

@ti-chi-bot ti-chi-bot commented Sep 7, 2026

Copy link
Copy Markdown
Member

This is an automated cherry-pick of #23686

What is changed, added or deleted? (Required)

Rewords the parenthetical describing TIDB_DECODE_SQL_DIGESTS()'s output from
"a form without formats and arguments" to "without value formats or arguments",
in 4 places (3 in functions-and-operators/tidb-functions.md, 1 in
releases/release-5.2.0.md).

The original phrasing uses "form" and "formats" as two separate words with the
same root meaning right next to each other ("a form without formats"), which
reads as slightly self-contradictory even in English, and becomes worse once
translated: in Japanese, both "form" and "format" map to the same word (形式),
so the translated sentence ends up reading as "a 形式 without 形式" — literally
"a form without form" — with no way to distinguish the two senses. Simplifying
to a single clear phrase avoids this.

Found while reviewing the Japanese translation for this exact confusion.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Clarified descriptions of TIDB_DECODE_SQL_DIGESTS() to explain that normalized SQL statements replace literal values with placeholders such as ? or ....
    • Updated the corresponding TiDB 5.2.0 release note wording.

yahonda and others added 5 commits September 7, 2026 02:24
…rding

Reword "a form without formats and arguments" to "without value formats
or arguments" to remove the redundant use of "form"/"formats" -- when
translated, both words map to the identical term in some languages,
making the parenthetical read as self-contradictory (a "form" without
"format").
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
@ti-chi-bot ti-chi-bot added lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. labels Sep 7, 2026
@ti-chi-bot

ti-chi-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign icemap for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation now describes normalized SQL statements as replacing literal values with placeholders such as ? or .... The wording is updated in function documentation and TiDB 5.2.0 release notes.

Changes

TIDB_DECODE_SQL_DIGESTS documentation

Layer / File(s) Summary
Normalized SQL statement descriptions
functions-and-operators/tidb-functions.md, releases/release-5.2.0.md
Updated the function tables, function description, and release note to use consistent placeholder-based wording for normalized SQL statements.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: 🔵 Low · up to 82561

The function documentation is clearer, but linked documentation may still describe normalized SQL differently, which can confuse users. Align the wording or confirm the difference is intentional before merging.

Suggested reviewers: qiancai

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the affected documentation areas and the wording clarification for TIDB_DECODE_SQL_DIGESTS().
Description check ✅ Passed The description explains the change, the reason for it, the affected version, AI involvement, and applicable checklist items. Optional reference-link fields are left blank, but the required content is…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 34e2a4dd-b33c-4e34-885d-900b0b779461

📥 Commits

Reviewing files that changed from the base of the PR and between 94afa8e and 8256126.

📒 Files selected for processing (2)
  • functions-and-operators/tidb-functions.md
  • releases/release-5.2.0.md

Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review.

## TIDB_DECODE_SQL_DIGESTS

The `TIDB_DECODE_SQL_DIGESTS()` function is used to query the normalized SQL statements (a form without formats and arguments) corresponding to the set of SQL digests in the cluster. This function accepts 1 or 2 arguments:
The `TIDB_DECODE_SQL_DIGESTS()` function is used to query the normalized SQL statements (in which literal values are replaced with placeholders such as `?` or `...`) corresponding to the set of SQL digests in the cluster. This function accepts 1 or 2 arguments:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Align the linked TIDB_TRX description.

information-schema/information-schema-tidb-trx.md still says that normalized SQL is “without arguments and format”. This page now defines the same output as literal values replaced with placeholders. Update the linked sentence in this backport, or confirm that the older wording is intentional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants