更新完成。没有行发生变化
1.以下 Teradata Bteq 脚本中易失性表上的收集统计语句返回没有更改的行。有人可以帮助我了解统计数据是否被收集吗?
收集 ORDER_VT 列 (ORDER_ID) 的统计信息;
** 更新完成。没有行发生变化。 *** 总用时为 16 秒。
2.尝试收集以下以两种不同方式创建的易失性的统计信息。
- 一次收集所有列的统计信息
- 单独收集每列的统计信息 这里有什么不同。
创建多集易失性表 TEST1 作为 ( 选择 第一栏, 第 2 栏, 第三栏, 从表 1 T1 内连接 TABLE2 T2 上 T1.KEY1=T2.KEY1 且 T1.KEY2=T2.KEY2 )带数据主索引(COLMN1,COLMN2,COLMN3) ON COMMIT 保留行;
Collect stats on TEST1 column(COLMN1,COLMN2,COLMN3);
Collect stats on TEST1 column(COLMN1 );
Collect stats on TEST1 column(COLMN2 );
Collect stats on TEST1 column(COLMN3 );
1 .The below collect stats statment on volatile table in Teradata Bteq script returns no rows changed . Can some one help me to understand whether the stats are collected or not ?.
collect stats on ORDER_VT column (ORDER_ID);
** Update completed. No rows changed.
*** Total elapsed time was 16 seconds.
2.Trying to collect the stats on below volatile created in two different ways .
- Collect stats on all columns at a time
- Collecting stats on each column individually
Whats make the the difference here .
Create multiset volatile table TEST1
as (
select
COLMN1,
COLMN2,
COLMN3,
from TABLE1 T1
inner join TABLE2 T2
on T1.KEY1=T2.KEY1
AND T1.KEY2=T2.KEY2
)WITH DATA PRIMARY INDEX(COLMN1,COLMN2,COLMN3)
ON COMMIT PRESERVE ROWS;
Collect stats on TEST1 column(COLMN1,COLMN2,COLMN3);
Collect stats on TEST1 column(COLMN1 );
Collect stats on TEST1 column(COLMN2 );
Collect stats on TEST1 column(COLMN3 );
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
#1:易失表上的统计信息仅存储在内存中,而不存储在数据字典中 ->没有行更新。
#2:第一个收集创建多列统计信息,其他收集都是单列统计信息。
要查看实际数据,请使用
help stats on test1;
和show stats value on test1;
#1: Stats on a Volatile Table are stored in memory only, not in the data dictionary -> no row updated.
#2: The 1st collect creates a multi-column statistics, the other ones are single column.
To see the actual data use
help stats on test1;
andshow stats values on test1;