[typo][doc]modify incorrect argument type. (#24095)

This commit is contained in:
ZhenchaoXu
2023-09-26 00:25:39 +08:00
committed by GitHub
parent 60ce1ed8a3
commit 4c9ffd210d
2 changed files with 4 additions and 4 deletions

View File

@ -163,8 +163,8 @@ At present, Doris's resource restrictions on single queries are mainly divided i
set exec_mem_limit=1G;
# Set the global variable exec_mem_limit. Then all subsequent queries of all new sessions (new connections) use this memory limit.
set global exec_mem_limit=1G;
# Set the variable exec_mem_limit in SQL. Then the variable only affects this SQL.
select /*+ SET_VAR(exec_mem_limit=1G) */ id, name from tbl where xxx;
# Set the variable exec_mem_limit in SQL(Unit bytes). Then the variable only affects this SQL.
select /*+ SET_VAR(exec_mem_limit=1073741824) */ id, name from tbl where xxx;
```
Because Doris' query engine is based on the full-memory MPP query framework. Therefore, when the memory usage of a query exceeds the limit, the query will be terminated. Therefore, when a query cannot run under a reasonable memory limit, we need to solve it through some SQL optimization methods or cluster expansion.

View File

@ -163,8 +163,8 @@ FE 不参与用户数据的处理计算等工作,因此是一个资源消耗
set exec_mem_limit=1G;
# 设置全局变量 exec_mem_limit。则之后所有新会话(新连接)的所有查询都使用这个内存限制。
set global exec_mem_limit=1G;
# 在 SQL 中设置变量 exec_mem_limit。则该变量仅影响这个 SQL。
select /*+ SET_VAR(exec_mem_limit=1G) */ id, name from tbl where xxx;
# 在 SQL 中设置变量 exec_mem_limit(单位:字节)。则该变量仅影响这个 SQL。
select /*+ SET_VAR(exec_mem_limit=1073741824) */ id, name from tbl where xxx;
```
因为 Doris 的查询引擎是基于全内存的 MPP 查询框架。因此当一个查询的内存使用超过限制后,查询会被终止。因此,当一个查询无法在合理的内存限制下运行时,我们就需要通过一些 SQL 优化手段,或者集群扩容的方式来解决了。