Skip to content

Commit efd2d11

Browse files
AI Translate 40-explain-cmds to Simplified-Chinese (#2727)
* [INIT] Start translation to Simplified-Chinese * 🌐 Translate explain-analyze-graphical.md to Simplified-Chinese * 🌐 Translate explain-analyze-graphical.md to Simplified-Chinese --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 02c57bd commit efd2d11

File tree

3 files changed

+26
-43
lines changed

3 files changed

+26
-43
lines changed

.translation-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Translation initialization: 2025-08-27T07:58:25.582398
1+
Translation initialization: 2025-08-27T16:19:31.177313

docs/cn/sql-reference/10-sql-commands/40-explain-cmds/explain-analyze-graphical.md

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@ title: EXPLAIN ANALYZE GRAPHICAL
44

55
import FunctionDescription from '@site/src/components/FunctionDescription';
66

7-
<FunctionDescription description="Introduced or updated: v1.2.647"/>
7+
<FunctionDescription description="引入或更新于:v1.2.647"/>
88

9-
`EXPLAIN ANALYZE GRAPHICAL` 是 BendSQL 客户端独有的命令。它允许您通过自动启动默认浏览器并呈现查询执行过程的交互式可视化表示来分析 SQL 查询的性能和执行计划。
10-
11-
此命令仅在 BendSQL v0.22.2 及更高版本中受支持。在使用它之前,请确保您的 BendSQL 已正确配置。有关设置说明,请参阅 [配置 BendSQL](#configuring-bendsql)
9+
通过浏览器中的交互式可视化界面分析查询性能。仅在 BendSQL v0.22.2 及以上版本可用。
1210

1311
## 语法
1412

1513
```sql
1614
EXPLAIN ANALYZE GRAPHICAL <statement>
1715
```
1816

19-
## 配置 BendSQL
17+
## 配置
2018

21-
要启用图形分析并自动打开默认浏览器,请将以下部分添加到 BendSQL 配置文件 `~/.config/bendsql/config.toml`
19+
BendSQL 配置文件 `~/.config/bendsql/config.toml` 中添加
2220

2321
```toml
2422
[server]
@@ -28,42 +26,18 @@ auto_open_browser = true
2826

2927
## 示例
3028

31-
您可以使用 `EXPLAIN ANALYZE GRAPHICAL` 来分析复杂查询(例如 TPC-H 基准查询)的性能,并了解查询的每个部分如何影响整体执行时间。
32-
33-
这是一个示例查询,用于计算 `lineitem` 表中的聚合:
34-
35-
```bash
36-
eric@(eric-xsmall)/tpch_100> EXPLAIN ANALYZE GRAPHICAL select
37-
l_returnflag,
38-
l_linestatus,
39-
sum(l_quantity) as sum_qty,
40-
sum(l_extendedprice) as sum_base_price,
41-
sum(l_extendedprice * (1 - l_discount)) as sum_disc_price,
42-
sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge,
43-
avg(l_quantity) as avg_qty,
44-
avg(l_extendedprice) as avg_price,
45-
avg(l_discount) as avg_disc,
46-
count(*) as count_order
47-
from
48-
lineitem
49-
where
50-
l_shipdate <= add_days(to_date('1998-12-01'), -90)
51-
group by
52-
l_returnflag,
53-
l_linestatus
54-
order by
55-
l_returnflag,
56-
l_linestatus;
29+
```sql
30+
EXPLAIN ANALYZE GRAPHICAL SELECT l_returnflag, COUNT(*)
31+
FROM lineitem
32+
WHERE l_shipdate <= '1998-09-01'
33+
GROUP BY l_returnflag;
5734
```
5835

59-
运行命令后,BendSQL 会输出一条消息,例如:
60-
36+
输出:
6137
```bash
6238
View graphical online: http://127.0.0.1:8080?perf_id=1
63-
64-
1095 rows graphical in 21.762 sec. Processed 0 rows, 0 B (0 row/s, 0 B/s)
6539
```
6640

67-
这会自动打开您的默认浏览器,并显示查询执行计划的交互式图形视图,包括运算符运行时、行数以及各个 Stage 之间的数据流
41+
将打开交互式视图,展示执行计划、算子运行时长及数据流
6842

69-
![alt text](@site/static/img/documents/sql/explain-graphical.png)
43+
![图形化分析](@site/static/img/documents/sql/explain-graphical.png)
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
---
2-
title: Explain 命令
2+
title: EXPLAIN 命令
33
---
4-
import IndexOverviewList from '@site/src/components/IndexOverviewList';
54

6-
本页提供 Databend 中 explain 相关命令的参考信息
5+
本页面提供 Databend 中与 EXPLAIN 相关的命令的参考信息
76

8-
<IndexOverviewList />
7+
## 命令概述
8+
9+
| 命令 | 使用场景 |
10+
|---------|----------|
11+
| [`EXPLAIN`](./explain) | 理解查询结构与优化 |
12+
| [`EXPLAIN ANALYZE`](./explain-analyze) | 通过运行时统计信息进行性能分析 |
13+
| [`EXPLAIN ANALYZE GRAPHICAL`](./explain-analyze-graphical) | 可视化性能分析(仅限 BendSQL) |
14+
| [`EXPLAIN AST`](./explain-ast) | SQL 解析与语法分析 |
15+
| [`EXPLAIN PERF`](./explain-perf) | 查询性能剖析(仅限 BendSQL) |
16+
| [`EXPLAIN RAW`](./explain-raw) | 内部查询处理分析 |
17+
| [`EXPLAIN SYNTAX`](./explain-syntax) | SQL 代码格式化与标准化 |

0 commit comments

Comments
 (0)