Skip to content

Commit ecfcdab

Browse files
dataroaringfelix021
andcommitted
fix: SQL mode behavior description for PIPES_AS_CONCAT (#3381)
## Summary - Correct `PIPES_AS_CONCAT` behavior description: when not enabled, `||` should be parsed as logical **OR** (not logical AND). - Apply the fix across `dev`, `3.x`, and `4.x` for both English and Chinese docs. ## Versions - [x] dev - [x] 4.x - [x] 3.x - [ ] 2.1 - [ ] 2.0 ## Languages - [x] Chinese - [x] English ## Reference - Original PR: #3199 Co-authored-by: Felix021 <felix021@gmail.com>
1 parent bfbbe33 commit ecfcdab

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/query-data/mysql-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,6 @@ Doris Function covers most MySQL functions.
265265

266266
| Name | Behavior when enabled | Behavior when disabled | Notes |
267267
| :-- | :-- | :-- | :-- |
268-
| PIPES_AS_CONCAT | Parses `\|\|` as the `concat` function | Parses `\|\|` as the logical AND operator | - |
268+
| PIPES_AS_CONCAT | Parses `\|\|` as the `concat` function | Parses `\|\|` as the logical OR operator | - |
269269
| NO_BACKSLASH_ESCAPES | Treats backslashes in strings as literal characters | Treats backslashes in strings as escape characters | - |
270-
| ONLY_FULL_GROUP_BY | Allows only standard aggregations | Allows scalar values not in the GROUP BY key to appear in the aggregation result | Supported since version 3.1.0 |
270+
| ONLY_FULL_GROUP_BY | Allows only standard aggregations | Allows scalar values not in the GROUP BY key to appear in the aggregation result | Supported since version 3.1.0 |

i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/mysql-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,6 @@ Doris Function 基本覆盖绝大部分 MySQL Function。
266266

267267
| 名称 | 设置的行为 | 未设置的行为 | 备注 |
268268
| :-- | :-- | :-- | :-- |
269-
| PIPES_AS_CONCAT |`\|\|` 符号解析为 concat 函数 |`\|\|` 符号解析为逻辑与操作符 | - |
269+
| PIPES_AS_CONCAT |`\|\|` 符号解析为 concat 函数 |`\|\|` 符号解析为逻辑或操作符 | - |
270270
| NO_BACKSLASH_ESCAPES | 将字符串中的反斜杠当做正常字符解析 | 将字符串中的反斜杠当做转义起始字符 | - |
271-
| ONLY_FULL_GROUP_BY | 只允许标准的聚合 | 允许聚合结果输出中包含不在聚合 KEY 中的标量值 | 自 3.1.0 版本开始支持 |
271+
| ONLY_FULL_GROUP_BY | 只允许标准的聚合 | 允许聚合结果输出中包含不在聚合 KEY 中的标量值 | 自 3.1.0 版本开始支持 |

i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/query-data/mysql-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,6 @@ Doris Function 基本覆盖绝大部分 MySQL Function。
266266

267267
| 名称 | 设置的行为 | 未设置的行为 | 备注 |
268268
| :-- | :-- | :-- | :-- |
269-
| PIPES_AS_CONCAT |`\|\|` 符号解析为 concat 函数 |`\|\|` 符号解析为逻辑与操作符 | - |
269+
| PIPES_AS_CONCAT |`\|\|` 符号解析为 concat 函数 |`\|\|` 符号解析为逻辑或操作符 | - |
270270
| NO_BACKSLASH_ESCAPES | 将字符串中的反斜杠当做正常字符解析 | 将字符串中的反斜杠当做转义起始字符 | - |
271-
| ONLY_FULL_GROUP_BY | 只允许标准的聚合 | 允许聚合结果输出中包含不在聚合 KEY 中的标量值 | 自 3.1.0 版本开始支持 |
271+
| ONLY_FULL_GROUP_BY | 只允许标准的聚合 | 允许聚合结果输出中包含不在聚合 KEY 中的标量值 | 自 3.1.0 版本开始支持 |

i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/query-data/mysql-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,6 @@ Doris Function 基本覆盖绝大部分 MySQL Function。
266266

267267
| 名称 | 设置的行为 | 未设置的行为 | 备注 |
268268
| :-- | :-- | :-- | :-- |
269-
| PIPES_AS_CONCAT |`\|\|` 符号解析为 concat 函数 |`\|\|` 符号解析为逻辑与操作符 | - |
269+
| PIPES_AS_CONCAT |`\|\|` 符号解析为 concat 函数 |`\|\|` 符号解析为逻辑或操作符 | - |
270270
| NO_BACKSLASH_ESCAPES | 将字符串中的反斜杠当做正常字符解析 | 将字符串中的反斜杠当做转义起始字符 | - |
271-
| ONLY_FULL_GROUP_BY | 只允许标准的聚合 | 允许聚合结果输出中包含不在聚合 KEY 中的标量值 | 自 3.1.0 版本开始支持 |
271+
| ONLY_FULL_GROUP_BY | 只允许标准的聚合 | 允许聚合结果输出中包含不在聚合 KEY 中的标量值 | 自 3.1.0 版本开始支持 |

versioned_docs/version-3.x/query-data/mysql-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,6 @@ Doris Function covers most MySQL functions.
265265

266266
| Name | Behavior when enabled | Behavior when disabled | Notes |
267267
| :-- | :-- | :-- | :-- |
268-
| PIPES_AS_CONCAT | Parses `\|\|` as the `concat` function | Parses `\|\|` as the logical AND operator | - |
268+
| PIPES_AS_CONCAT | Parses `\|\|` as the `concat` function | Parses `\|\|` as the logical OR operator | - |
269269
| NO_BACKSLASH_ESCAPES | Treats backslashes in strings as literal characters | Treats backslashes in strings as escape characters | - |
270-
| ONLY_FULL_GROUP_BY | Allows only standard aggregations | Allows scalar values not in the GROUP BY key to appear in the aggregation result | Supported since version 3.1.0 |
270+
| ONLY_FULL_GROUP_BY | Allows only standard aggregations | Allows scalar values not in the GROUP BY key to appear in the aggregation result | Supported since version 3.1.0 |

versioned_docs/version-4.x/query-data/mysql-compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,6 @@ Doris Function covers most MySQL functions.
265265

266266
| Name | Behavior when enabled | Behavior when disabled | Notes |
267267
| :-- | :-- | :-- | :-- |
268-
| PIPES_AS_CONCAT | Parses `\|\|` as the `concat` function | Parses `\|\|` as the logical AND operator | - |
268+
| PIPES_AS_CONCAT | Parses `\|\|` as the `concat` function | Parses `\|\|` as the logical OR operator | - |
269269
| NO_BACKSLASH_ESCAPES | Treats backslashes in strings as literal characters | Treats backslashes in strings as escape characters | - |
270-
| ONLY_FULL_GROUP_BY | Allows only standard aggregations | Allows scalar values not in the GROUP BY key to appear in the aggregation result | Supported since version 3.1.0 |
270+
| ONLY_FULL_GROUP_BY | Allows only standard aggregations | Allows scalar values not in the GROUP BY key to appear in the aggregation result | Supported since version 3.1.0 |

0 commit comments

Comments
 (0)