From 3c57dda08077bce307eaae1f83035a0e6c113ecb Mon Sep 17 00:00:00 2001 From: boluor Date: Tue, 2 Jun 2026 07:54:55 +0000 Subject: [PATCH] [fix](sql-functions) provide setup data for the EXPORT_SET table example The EXPORT_SET page shows `SELECT ... FROM test_export_set` examples with an expected result, but never defines `test_export_set`, so the examples cannot be run or reproduced ("table does not exist"). Add the missing CREATE TABLE + INSERT, carried in a standard HTML comment (``) before the example. As an HTML comment it does not change the rendered page, and no documented expected output is modified. The table contents were reverse-derived from the printed input table and verified end-to-end on version-4.x (4.1.1) and dev/current (master): the input table and the EXPORT_SET results match the documented output exactly, including the row whose separator is the literal "|123|". Updated in EN + ZH across dev/current and version-4.x (the page exists only in those two trees). Note: a separate, pre-existing inconsistency on this page (one example's SQL selects one column while its output table shows six) is tracked in #3879 and intentionally left out of this setup-only change. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../scalar-functions/string-functions/export-set.md | 5 +++++ .../scalar-functions/string-functions/export-set.md | 5 +++++ .../scalar-functions/string-functions/export-set.md | 5 +++++ .../scalar-functions/string-functions/export-set.md | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/docs/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md b/docs/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md index d3b016cdb5743..66dd38d4329fe 100644 --- a/docs/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md +++ b/docs/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md @@ -37,6 +37,11 @@ Returns a string. For each bit in `bits`, from the least significant bit to the If `number_of_bits` is out of range [-2^31, 2^31 - 1] or any parameter in the function is NULL, return NULL. ## Example + + ```sql SELECT EXPORT_SET(-2, '1', '0'); ``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md index 334fde1d104c9..2adb4a3d13264 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md @@ -39,6 +39,11 @@ EXPORT_SET(bits, on, off[, separator[, number_of_bits]]) ## 举例 + + ```sql SELECT EXPORT_SET(-2, '1', '0'); ``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md index 334fde1d104c9..2adb4a3d13264 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md @@ -39,6 +39,11 @@ EXPORT_SET(bits, on, off[, separator[, number_of_bits]]) ## 举例 + + ```sql SELECT EXPORT_SET(-2, '1', '0'); ``` diff --git a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md index d3b016cdb5743..66dd38d4329fe 100644 --- a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md +++ b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/export-set.md @@ -37,6 +37,11 @@ Returns a string. For each bit in `bits`, from the least significant bit to the If `number_of_bits` is out of range [-2^31, 2^31 - 1] or any parameter in the function is NULL, return NULL. ## Example + + ```sql SELECT EXPORT_SET(-2, '1', '0'); ```