gpt4 book ai didi

hadoop - 配置单元 SQL CalcitePlanner : CBO failed due to missing column stats

转载 作者:可可西里 更新时间:2023-11-01 15:26:24 25 4
gpt4 key购买 nike

以下错误对 hive 的影响是什么以及如何避免:

17/09/14 16:24:25 [main]: ERROR calcite.RelOptHiveTable: No Stats for user@table, Columns: xyz column 17/09/14 16:24:25 [main]: ERROR parse.CalcitePlanner: CBO failed due to missing column stats (see previous errors), skipping CBO

SQL查询-

create table extractdataset
as select id,value, sum(rtne) as rtne_sum
from ( inner query )

最佳答案

请运行:

 analyze table extractdataset compute statistics;
analyze table extractdataset compute statistics for columns;

关于hadoop - 配置单元 SQL CalcitePlanner : CBO failed due to missing column stats,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46229734/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com