This is an automated email from the ASF dual-hosted git repository.
kassiez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new be328212516 [Chinese] update join hint (#1375)
be328212516 is described below
commit be3282125161af21167ff6f18eaf6b41c7dfcde2
Author: LiBinfeng <[email protected]>
AuthorDate: Thu Nov 28 10:22:25 2024 +0800
[Chinese] update join hint (#1375)
# Versions
- [x] dev
- [x] 3.0
- [x] 2.1
- [ ] 2.0
# Languages
- [x] Chinese
- [ ] English
---
.../current/query-acceleration/tuning/join-hint.md | 8 ++++----
.../version-2.0/query/join-optimization/join-hint.md | 4 ++--
.../version-2.1/query-acceleration/tuning/join-hint.md | 8 ++++----
.../version-3.0/query-acceleration/tuning/join-hint.md | 8 ++++----
4 files changed, 14 insertions(+), 14 deletions(-)
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-acceleration/tuning/join-hint.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-acceleration/tuning/join-hint.md
index 7f618a06def..cfac61ba585 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-acceleration/tuning/join-hint.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-acceleration/tuning/join-hint.md
@@ -60,7 +60,7 @@ mysql> explain shape plan select * from t1 join t2 on t1.c1 =
c2;
7 rows in set (0.06 sec)
```
-此时,我们可以使用 Leading Hint 来任意改变 tableA 和 tableB 的 Join 顺序。例如:
+此时,我们可以使用 Leading Hint 来任意改变 t1 和 t2 的 Join 顺序。例如:
```sql
mysql> explain shape plan select /*+ leading(t2 t1) */ * from t1 join t2 on c1
= c2;
@@ -150,7 +150,7 @@ mysql> explain shape plan select /*+ leading(t2 t1) */ *
from t1 join t2 on c1 =
- Used:Leading Hint 正常生效
-- Unused:这里不支持的情况包含 Leading Hint 指定的 join order 与原 SQL 不等价或本版本暂不支持特性(详见限制)
+- Unused:这里不支持的情况包含 Leading Hint 指定的 join order 与原 SQL 不等价或本版本暂不支持特性
- SyntaxError:指 Leading Hint 语法错误,如找不到对应的表等
@@ -613,9 +613,9 @@ mysql> explain shape plan select /*+ ORDERED LEADING(t1 t2
t3) */ t1.c1 from t2
18 rows in set (0.02 sec)
```
-## DistrbuteHint 使用说明
+## DistributeHint 使用说明
-- 目前只能指定右表的 Distribute Type,而且只有 `[shuffle]` 和 `[broadcast]` 两种。需写在 Join
右表前面,且允许使用中括号 `[]` 和 `/`*`+`*`/`两种写法。
+- 目前只能指定右表的 Distribute Type,而且只有 `[shuffle]` 和 `[broadcast]` 两种。需写在 Join 右表前面 。
- 目前能使用任意个 DistributeHint。
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/query/join-optimization/join-hint.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/query/join-optimization/join-hint.md
index 887346228db..b3b106d6a36 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/query/join-optimization/join-hint.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/query/join-optimization/join-hint.md
@@ -54,7 +54,7 @@ mysql> explain shape plan select * from t1 join t2 on t1.c1 =
c2;
7 rows in set (0.06 sec)
```
-在上述例子里面,在执行效率不理想的时候,我们希望调整下 join 顺序而不改变原始 sql 以免影响到用户原始场景且能达到调优的目的。我们可以使用
leading 任意改变 tableA 和 tableB 的 join 顺序。例如可以写成:
+在上述例子里面,在执行效率不理想的时候,我们希望调整下 join 顺序而不改变原始 sql 以免影响到用户原始场景且能达到调优的目的。我们可以使用
leading 任意改变 t1 和 t2 的 join 顺序。例如可以写成:
```sql
mysql> explain shape plan select /*+ leading(t2 t1) */ * from t1 join t2 on c1
= c2;
@@ -114,7 +114,7 @@ mysql> explain shape plan select /*+ leading(t2 t1) */ *
from t1 join t2 on c1 =
- Used:leading hint 正常生效
- - Unused:这里不支持的情况包含 leading 指定的 join order 与原 sql 不等价或本版本暂不支持特性(详见限制)
+ - Unused:这里不支持的情况包含 leading 指定的 join order 与原 sql 不等价或本版本暂不支持特性
- SyntaxError:指 leading hint 语法错误,如找不到对应的表等
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/query-acceleration/tuning/join-hint.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/query-acceleration/tuning/join-hint.md
index 7f618a06def..cfac61ba585 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/query-acceleration/tuning/join-hint.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/query-acceleration/tuning/join-hint.md
@@ -60,7 +60,7 @@ mysql> explain shape plan select * from t1 join t2 on t1.c1 =
c2;
7 rows in set (0.06 sec)
```
-此时,我们可以使用 Leading Hint 来任意改变 tableA 和 tableB 的 Join 顺序。例如:
+此时,我们可以使用 Leading Hint 来任意改变 t1 和 t2 的 Join 顺序。例如:
```sql
mysql> explain shape plan select /*+ leading(t2 t1) */ * from t1 join t2 on c1
= c2;
@@ -150,7 +150,7 @@ mysql> explain shape plan select /*+ leading(t2 t1) */ *
from t1 join t2 on c1 =
- Used:Leading Hint 正常生效
-- Unused:这里不支持的情况包含 Leading Hint 指定的 join order 与原 SQL 不等价或本版本暂不支持特性(详见限制)
+- Unused:这里不支持的情况包含 Leading Hint 指定的 join order 与原 SQL 不等价或本版本暂不支持特性
- SyntaxError:指 Leading Hint 语法错误,如找不到对应的表等
@@ -613,9 +613,9 @@ mysql> explain shape plan select /*+ ORDERED LEADING(t1 t2
t3) */ t1.c1 from t2
18 rows in set (0.02 sec)
```
-## DistrbuteHint 使用说明
+## DistributeHint 使用说明
-- 目前只能指定右表的 Distribute Type,而且只有 `[shuffle]` 和 `[broadcast]` 两种。需写在 Join
右表前面,且允许使用中括号 `[]` 和 `/`*`+`*`/`两种写法。
+- 目前只能指定右表的 Distribute Type,而且只有 `[shuffle]` 和 `[broadcast]` 两种。需写在 Join 右表前面 。
- 目前能使用任意个 DistributeHint。
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/query-acceleration/tuning/join-hint.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/query-acceleration/tuning/join-hint.md
index 7f618a06def..cfac61ba585 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/query-acceleration/tuning/join-hint.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/query-acceleration/tuning/join-hint.md
@@ -60,7 +60,7 @@ mysql> explain shape plan select * from t1 join t2 on t1.c1 =
c2;
7 rows in set (0.06 sec)
```
-此时,我们可以使用 Leading Hint 来任意改变 tableA 和 tableB 的 Join 顺序。例如:
+此时,我们可以使用 Leading Hint 来任意改变 t1 和 t2 的 Join 顺序。例如:
```sql
mysql> explain shape plan select /*+ leading(t2 t1) */ * from t1 join t2 on c1
= c2;
@@ -150,7 +150,7 @@ mysql> explain shape plan select /*+ leading(t2 t1) */ *
from t1 join t2 on c1 =
- Used:Leading Hint 正常生效
-- Unused:这里不支持的情况包含 Leading Hint 指定的 join order 与原 SQL 不等价或本版本暂不支持特性(详见限制)
+- Unused:这里不支持的情况包含 Leading Hint 指定的 join order 与原 SQL 不等价或本版本暂不支持特性
- SyntaxError:指 Leading Hint 语法错误,如找不到对应的表等
@@ -613,9 +613,9 @@ mysql> explain shape plan select /*+ ORDERED LEADING(t1 t2
t3) */ t1.c1 from t2
18 rows in set (0.02 sec)
```
-## DistrbuteHint 使用说明
+## DistributeHint 使用说明
-- 目前只能指定右表的 Distribute Type,而且只有 `[shuffle]` 和 `[broadcast]` 两种。需写在 Join
右表前面,且允许使用中括号 `[]` 和 `/`*`+`*`/`两种写法。
+- 目前只能指定右表的 Distribute Type,而且只有 `[shuffle]` 和 `[broadcast]` 两种。需写在 Join 右表前面 。
- 目前能使用任意个 DistributeHint。
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]