Skip to content

Commit 6e3768d

Browse files
authored
[FLINK-39405][docs] Fix document escape display errors on sql built-in function page (#27900)
1 parent 106acbc commit 6e3768d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/data/sql_functions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ comparison:
5050
description: By default (or with the ASYMMETRIC keyword), returns TRUE if value1 is less than value2 or greater than value3. With the SYMMETRIC keyword, returns TRUE if value1 is not inclusively between value2 and value3. When either value2 or value3 is NULL, returns TRUE or UNKNOWN. E.g., 12 NOT BETWEEN 15 AND 12 returns TRUE; 12 NOT BETWEEN SYMMETRIC 15 AND 12 returns FALSE; 12 NOT BETWEEN NULL AND 15 returns UNKNOWN; 12 NOT BETWEEN 15 AND NULL returns TRUE; 12 NOT BETWEEN SYMMETRIC 12 AND NULL returns UNKNOWN.
5151
- sql: string1 LIKE string2 [ ESCAPE char ]
5252
table: string1.like(string2[, char])
53-
description: Returns TRUE if string1 matches pattern string2; returns UNKNOWN if string1 or string2 is NULL. An escape character consisting of a single char can be defined if necessary, '\' by default.
53+
description: Returns TRUE if string1 matches pattern string2; returns UNKNOWN if string1 or string2 is NULL. An escape character consisting of a single char can be defined if necessary, `\` by default.
5454
- sql: string1 NOT LIKE string2 [ ESCAPE char ]
55-
description: Returns TRUE if string1 does not match pattern string2; returns UNKNOWN if string1 or string2 is NULL. An escape character consisting of a single char can be defined if necessary, '\' by default.
55+
description: Returns TRUE if string1 does not match pattern string2; returns UNKNOWN if string1 or string2 is NULL. An escape character consisting of a single char can be defined if necessary, `\` by default.
5656
- sql: string1 SIMILAR TO string2 [ ESCAPE char ]
5757
table: string1.similar(string2)
5858
description: Returns TRUE if string1 matches SQL regular expression string2; returns UNKNOWN if string1 or string2 is NULL. An escape character can be defined if necessary. The escape character has not been supported yet.
@@ -522,10 +522,10 @@ string:
522522
description: Returns a substring of string starting from position integer1 with length integer2 (to the end by default).
523523
- sql: JSON_QUOTE(string)
524524
table: STRING.JsonQuote()
525-
description: Quotes a string as a JSON value by wrapping it with double quote characters, escaping interior quote and special characters ('"', '\', '/', 'b', 'f', 'n', 'r', 't'), and returning the result as a string. If the argument is NULL, the function returns NULL.
525+
description: Quotes a string as a JSON value by wrapping it with double quote characters, escaping interior quote and special characters (`"`, `\`, `/`, `\b`, `\f`, `\n`, `\r`, `\t`), and returning the result as a string. If the argument is NULL, the function returns NULL.
526526
- sql: JSON_UNQUOTE(string)
527527
table: STRING.JsonUnquote()
528-
description: Unquotes JSON value, unescapes escaped special characters ('"', '\', '/', 'b', 'f', 'n', 'r', 't', 'u' hex hex hex hex), and returns the result as a string. If the argument is NULL, returns NULL. If the value does not start and end with double quotes or if it starts and ends with double quotes but is not a valid JSON string literal, the value is passed through unmodified.
528+
description: Unquotes JSON value, unescapes escaped special characters (`"`, `\`, `/`, `\b`, `\f`, `\n`, `\r`, `\t`, `\u` hex hex hex hex), and returns the result as a string. If the argument is NULL, returns NULL. If the value does not start and end with double quotes or if it starts and ends with double quotes but is not a valid JSON string literal, the value is passed through unmodified.
529529
- sql: ELT(index, expr[, exprs]*)
530530
table: index.elt(expr, exprs...)
531531
description: |

docs/data/sql_functions_zh.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ comparison:
7272
table: string1.like(string2[, char])
7373
description: |
7474
如果 string1 匹配 string2 返回 `TRUE`;如果 string1 或 string2 为 `NULL` 返回 `UNKNOWN`。
75-
如果需要可以定义包含单个字符的转义字符,默认为 '\'
75+
如果需要可以定义包含单个字符的转义字符,默认为 `\`
7676
- sql: string1 NOT LIKE string2 [ ESCAPE char ]
7777
description: |
7878
如果 string1 与 string2 不匹配返回 `TRUE`;如果 string1 或 string2 为 `NULL` 返回 `UNKNOWN`。
79-
如果需要可以定义包含单个字符的转义字符,默认为 '\'
79+
如果需要可以定义包含单个字符的转义字符,默认为 `\`
8080
- sql: string1 SIMILAR TO string2 [ ESCAPE char ]
8181
table: string1.similar(string2)
8282
description: |
@@ -619,10 +619,10 @@ string:
619619
description: 返回字符串的子字符串,从位置 integer1 开始,长度为 integer2(默认到末尾)。
620620
- sql: JSON_QUOTE(string)
621621
table: STRING.JsonQuote()
622-
description: Quotes a string as a JSON value by wrapping it with double quote characters, escaping interior quote and special characters ('"', '\', '/', 'b', 'f', 'n', 'r', 't'), and returning the result as a string. If the argument is NULL, the function returns NULL.
622+
description: Quotes a string as a JSON value by wrapping it with double quote characters, escaping interior quote and special characters (`"`, `\`, `/`, `\b`, `\f`, `\n`, `\r`, `\t`), and returning the result as a string. If the argument is NULL, the function returns NULL.
623623
- sql: JSON_UNQUOTE(string)
624624
table: STRING.JsonUnquote()
625-
description: Unquotes JSON value, unescapes escaped special characters ('"', '\', '/', 'b', 'f', 'n', 'r', 't', 'u' hex hex hex hex), and returns the result as a string. If the argument is NULL, returns NULL. If the value does not start and end with double quotes or if it starts and ends with double quotes but is not a valid JSON string literal, the value is passed through unmodified.
625+
description: Unquotes JSON value, unescapes escaped special characters (`"`, `\`, `/`, `\b`, `\f`, `\n`, `\r`, `\t`, `\u` hex hex hex hex), and returns the result as a string. If the argument is NULL, returns NULL. If the value does not start and end with double quotes or if it starts and ends with double quotes but is not a valid JSON string literal, the value is passed through unmodified.
626626
- sql: ELT(index, expr[, exprs]*)
627627
table: index.elt(expr, exprs...)
628628
description: |

0 commit comments

Comments
 (0)