Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ad24914a
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ad24914a
编写于
5月 09, 2023
作者:
W
wangjiaming0909
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: select _block_dist() from t; set the unit of Size to KB
上级
a5c78be1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
docs/en/12-taos-sql/06-select.md
docs/en/12-taos-sql/06-select.md
+2
-2
docs/zh/12-taos-sql/06-select.md
docs/zh/12-taos-sql/06-select.md
+2
-2
src/query/src/qAggMain.c
src/query/src/qAggMain.c
+1
-1
未找到文件。
docs/en/12-taos-sql/06-select.md
浏览文件 @
ad24914a
...
...
@@ -229,7 +229,7 @@ SELECT _block_dist() FROM { tb_name | stb_name }
```
text title="Result"
summary:
5th=[392], 10th=[392], 20th=[392], 30th=[392], 40th=[792], 50th=[792] 60th=[792], 70th=[792], 80th=[792], 90th=[792], 95th=[792], 99th=[792] Min=[392(Rows)] Max=[800(Rows)] Avg=[666(Rows)] Stddev=[2.17] Rows=[2000], Blocks=[3], Size=[5.440(K
b
)] Comp=[0.23] RowsInMem=[0] SeekHeaderTime=[1(us)]
5th=[392], 10th=[392], 20th=[392], 30th=[392], 40th=[792], 50th=[792] 60th=[792], 70th=[792], 80th=[792], 90th=[792], 95th=[792], 99th=[792] Min=[392(Rows)] Max=[800(Rows)] Avg=[666(Rows)] Stddev=[2.17] Rows=[2000], Blocks=[3], Size=[5.440(K
B
)] Comp=[0.23] RowsInMem=[0] SeekHeaderTime=[1(us)]
```
**More explanation about above example**
:
...
...
@@ -241,7 +241,7 @@ summary:
-
stddev of number of rows, i.e. Stddev=[2.17]
-
Total number of rows, i.e. Rows[2000]
-
Total number of data blocks, i.e. Blocks=[3]
-
Total disk size consumed, i.e. Size=[5.440(K
b
)]
-
Total disk size consumed, i.e. Size=[5.440(K
B
)]
-
Compression ratio, which means the compressed size divided by original size, i.e. Comp=[0.23]
-
Total number of rows in memory, i.e. RowsInMem=[0], which means no rows in memory
-
The time spent on reading head file (to retrieve data block information), i.e. SeekHeaderTime=[1(us)], which means 1 microsecond.
...
...
docs/zh/12-taos-sql/06-select.md
浏览文件 @
ad24914a
...
...
@@ -240,7 +240,7 @@ SELECT _block_dist() FROM { tb_name | stb_name }
```
txt title="返回结果"
summary:
5th=[392], 10th=[392], 20th=[392], 30th=[392], 40th=[792], 50th=[792] 60th=[792], 70th=[792], 80th=[792], 90th=[792], 95th=[792], 99th=[792] Min=[392(Rows)] Max=[800(Rows)] Avg=[666(Rows)] Stddev=[2.17] Rows=[2000], Blocks=[3], Size=[5.440(K
b
)] Comp=[0.23] RowsInMem=[0] SeekHeaderTime=[1(us)]
5th=[392], 10th=[392], 20th=[392], 30th=[392], 40th=[792], 50th=[792] 60th=[792], 70th=[792], 80th=[792], 90th=[792], 95th=[792], 99th=[792] Min=[392(Rows)] Max=[800(Rows)] Avg=[666(Rows)] Stddev=[2.17] Rows=[2000], Blocks=[3], Size=[5.440(K
B
)] Comp=[0.23] RowsInMem=[0] SeekHeaderTime=[1(us)]
```
**上述信息的说明如下**
:
...
...
@@ -252,7 +252,7 @@ summary:
-
所有数据块中行数分布的均方差为 2.17 ( stddev )。
-
数据块包含的行的总数为 2000 行(Rows)。
-
数据块总数是 3 个数据块 (Blocks)。
-
数据块占用磁盘空间大小 5.44 K
b
(size)。
-
数据块占用磁盘空间大小 5.44 K
B
(size)。
-
压缩后的数据块的大小除以原始数据的所获得的压缩比例: 23%(Comp),及压缩后的数据规模是原始数据规模的 23%。
-
内存中存在的数据行数是 0,表示内存中没有数据缓存。
-
获取数据块信息的过程中读取头文件的时间开销 1 微秒(SeekHeaderTime)。
...
...
src/query/src/qAggMain.c
浏览文件 @
ad24914a
...
...
@@ -5108,7 +5108,7 @@ void generateBlockDistResult(STableBlockDist *pTableBlockDist, char* result) {
"5th=[%d], 10th=[%d], 20th=[%d], 30th=[%d], 40th=[%d], 50th=[%d]
\n\t
"
"60th=[%d], 70th=[%d], 80th=[%d], 90th=[%d], 95th=[%d], 99th=[%d]
\n\t
"
"Min=[%"
PRId64
"(Rows)] Max=[%"
PRId64
"(Rows)] Avg=[%"
PRId64
"(Rows)] Stddev=[%.2f]
\n\t
"
"Rows=[%"
PRIu64
"], Blocks=[%"
PRId64
"], SmallBlocks=[%d], Size=[%.3f(K
b
)] Comp=[%.5g]
\n\t
"
"Rows=[%"
PRIu64
"], Blocks=[%"
PRId64
"], SmallBlocks=[%d], Size=[%.3f(K
B
)] Comp=[%.5g]
\n\t
"
"RowsInMem=[%d]
\n\t
"
,
percentiles
[
0
],
percentiles
[
1
],
percentiles
[
2
],
percentiles
[
3
],
percentiles
[
4
],
percentiles
[
5
],
percentiles
[
6
],
percentiles
[
7
],
percentiles
[
8
],
percentiles
[
9
],
percentiles
[
10
],
percentiles
[
11
],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录