This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 05512d7 [Doc] Fix typo
05512d7 is described below
commit 05512d7b47abd8b798a88c1d0b8081d84c81d537
Author: 涛涛哥 <[email protected]>
AuthorDate: Mon Sep 28 13:38:39 2020 +0800
[Doc] Fix typo
---
docs/zh-CN/getting-started/data-model-rollup.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/zh-CN/getting-started/data-model-rollup.md
b/docs/zh-CN/getting-started/data-model-rollup.md
index 9087f9c..18d6860 100644
--- a/docs/zh-CN/getting-started/data-model-rollup.md
+++ b/docs/zh-CN/getting-started/data-model-rollup.md
@@ -452,7 +452,7 @@ Doris 会自动命中这个 ROLLUP 表。
我们将一行数据的前 **36 个字节** 作为这行数据的前缀索引。当遇到 VARCHAR 类型时,前缀索引会直接截断。我们举例说明:
-1. 以下表结构的前缀索引为 user_id(8Byte) + age(4Bytes) + message(prefix 24 Bytes)。
+1. 以下表结构的前缀索引为 user_id(8Byte) + age(4Bytes) + message(prefix 20 Bytes)。
|ColumnName|Type|
|---|---|
@@ -508,7 +508,7 @@ Base 表结构如下:
可以看到,ROLLUP 和 Base 表的列完全一样,只是将 user_id 和 age 的顺序调换了。那么当我们进行如下查询时:
-`SELECT * FROM table where age=20 and massage LIKE "%error%";`
+`SELECT * FROM table where age=20 and message LIKE "%error%";`
会优先选择 ROLLUP 表,因为 ROLLUP 的前缀索引匹配度更高。
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]