Skip to content

Conversation

dveeden
Copy link
Contributor

@dveeden dveeden commented Sep 22, 2025

First-time contributors' checklist

What is changed, added or deleted? (Required)

  • Remove reference manual links for functions for which we have our own docs.
  • Keep links for functions/operators that are not explained in the TiDB docs yet
  • We can keep a link at the top linking to the corresponding page in the MySQL Reference Manual like this: TiDB supports most of the user-level [locking functions](https://dev.mysql.com/doc/refman/8.0/en/locking-functions.html) available in MySQL 8.0.

This was done with sed -E -i -e 's/(^#* )\[(.*)\].*$/\1\2/' path/to/file.md

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

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

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

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

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

@dveeden dveeden requested review from mjonss, hfxsd and qiancai September 22, 2025 17:03
Copy link

ti-chi-bot bot commented Sep 22, 2025

[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 oreoxmt 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.

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

@ti-chi-bot ti-chi-bot bot added missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 22, 2025
Copy link

Summary of Changes

Hello @dveeden, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the TiDB documentation by streamlining the user experience for functions and operators. It systematically removes direct links to the MySQL Reference Manual for features that are comprehensively documented within TiDB's own pages. This change aims to keep users within the TiDB documentation ecosystem, providing a more cohesive and self-contained information source, while still acknowledging MySQL compatibility where necessary.

Highlights

  • Documentation Self-Sufficiency: Removed external MySQL Reference Manual links from numerous function and operator documentation pages where TiDB provides its own comprehensive coverage.
  • Improved User Experience: Users will now primarily find information within the TiDB documentation, reducing the need to navigate to external sites for functions already covered.
  • Targeted External Links: External links to the MySQL Reference Manual are now maintained only for functions/operators not yet explained in TiDB's own documentation, or for general reference at the top of relevant pages.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@dveeden
Copy link
Contributor Author

dveeden commented Sep 22, 2025

With this PR:

functions-and-operators/operators.md	75
functions-and-operators/date-and-time-functions.md	62
functions-and-operators/numeric-functions-and-operators.md	38
vector-search/vector-search-functions-and-operators.md	28
functions-and-operators/aggregate-group-by-functions.md	11
tidb-cloud/tidb-cloud-dm-precheck-and-troubleshooting.md	7
scripts/update_mysql_ref.py	7
dm/dm-block-allow-table-lists.md	7
functions-and-operators/string-functions.md	6
functions-and-operators/locking-functions.md	6
functions-and-operators/expressions-pushed-down.md	6
functions-and-operators/control-flow-functions.md	5
character-set-and-collation.md	5
functions-and-operators/cast-functions-and-operators.md	4
dm/dm-glossary.md	4
system-variables.md	3
partitioned-table.md	3
mysql-compatibility.md	3
literal-values.md	3
develop/dev-guide-schema-design-overview.md	3
data-type-string.md	3
data-type-numeric.md	3
vector-search/vector-search-get-started-using-sql.md	2
tidb-lightning/tidb-lightning-data-source.md	2
security-compatibility-with-mysql.md	2
schema-object-names.md	2
releases/release-6.4.0.md	2
functions-and-operators/miscellaneous-functions.md	2
develop/dev-guide-create-table.md	2
user-defined-variables.md	1

And with master:

functions-and-operators/operators.md	75
functions-and-operators/string-functions.md	63
functions-and-operators/date-and-time-functions.md	62
functions-and-operators/numeric-functions-and-operators.md	38
vector-search/vector-search-functions-and-operators.md	28
functions-and-operators/encryption-and-compression-functions.md	13
functions-and-operators/window-functions.md	12
functions-and-operators/json-functions/json-functions-modify.md	11
functions-and-operators/aggregate-group-by-functions.md	11
functions-and-operators/json-functions/json-functions-search.md	9
functions-and-operators/bit-functions-and-operators.md	8
tidb-cloud/tidb-cloud-dm-precheck-and-troubleshooting.md	7
scripts/update_mysql_ref.py	7
dm/dm-block-allow-table-lists.md	7
functions-and-operators/locking-functions.md	6
functions-and-operators/expressions-pushed-down.md	6
functions-and-operators/control-flow-functions.md	5
character-set-and-collation.md	5
functions-and-operators/json-functions/json-functions-return.md	4
functions-and-operators/cast-functions-and-operators.md	4
dm/dm-glossary.md	4
system-variables.md	3
partitioned-table.md	3
mysql-compatibility.md	3
literal-values.md	3
functions-and-operators/json-functions/json-functions-utility.md	3
functions-and-operators/json-functions/json-functions-create.md	3
develop/dev-guide-schema-design-overview.md	3
data-type-string.md	3
data-type-numeric.md	3

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes external links to the MySQL Reference Manual from function documentation, which is a good cleanup. My review focuses on ensuring the formatting of the updated headings is consistent with the documentation style guide. I've found several instances in the JSON function documents where function names in headings are missing backticks and have provided suggestions to fix them.

The functions listed on this page are part of the [aggregate functions](/functions-and-operators/aggregate-group-by-functions.md) that TiDB supports, but are specific to working with JSON.

## [JSON_ARRAYAGG()](https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_json-arrayagg)
## JSON_ARRAYAGG()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_ARRAYAGG()
## `JSON_ARRAYAGG()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

```

## [JSON_OBJECTAGG()](https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_json-objectagg)
## JSON_OBJECTAGG()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_OBJECTAGG()
## `JSON_OBJECTAGG()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

This document describes JSON functions that create JSON values.

## [JSON_ARRAY()](https://dev.mysql.com/doc/refman/8.0/en/json-creation-functions.html#function_json-array)
## JSON_ARRAY()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_ARRAY()
## `JSON_ARRAY()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

```

## [JSON_OBJECT()](https://dev.mysql.com/doc/refman/8.0/en/json-creation-functions.html#function_json-object)
## JSON_OBJECT()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_OBJECT()
## `JSON_OBJECT()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

```

## [JSON_QUOTE()](https://dev.mysql.com/doc/refman/8.0/en/json-creation-functions.html#function_json-quote)
## JSON_QUOTE()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_QUOTE()
## `JSON_QUOTE()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

```

## [JSON_OVERLAPS()](https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html#function_json-overlaps)
## JSON_OVERLAPS()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_OVERLAPS()
## `JSON_OVERLAPS()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

This document describes JSON utility functions.

## [JSON_PRETTY()](https://dev.mysql.com/doc/refman/8.0/en/json-utility-functions.html#function_json-pretty)
## JSON_PRETTY()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_PRETTY()
## `JSON_PRETTY()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

```

## [JSON_STORAGE_FREE()](https://dev.mysql.com/doc/refman/8.0/en/json-utility-functions.html#function_json-storage-free)
## JSON_STORAGE_FREE()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_STORAGE_FREE()
## `JSON_STORAGE_FREE()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

```

## [JSON_STORAGE_SIZE()](https://dev.mysql.com/doc/refman/8.0/en/json-utility-functions.html#function_json-storage-size)
## JSON_STORAGE_SIZE()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_STORAGE_SIZE()
## `JSON_STORAGE_SIZE()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

> Currently, this feature is not available on [{{{ .starter }}}](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) and [{{{ .essential }}}](https://docs.pingcap.com/tidbcloud/select-cluster-tier#essential) clusters.
## [JSON_SCHEMA_VALID()](https://dev.mysql.com/doc/refman/8.0/en/json-validation-functions.html#function_json-schema-valid)
## JSON_SCHEMA_VALID()

Choose a reason for hiding this comment

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

low

To adhere to the style guide, function and operator names in headings should be enclosed in backticks for proper code formatting.1

Suggested change
## JSON_SCHEMA_VALID()
## `JSON_SCHEMA_VALID()`

Style Guide References

Footnotes

  1. The style guide specifies that code snippets, command names, options, and paths should be enclosed in backticks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant