我正在对HDP 3.0 kerberized集群进行操作,并尝试运行配置单元计数查询。 在运行计数查询时,我发现它没有显示托管表的结果,但为外部表显示了相同的查询
CREATE TABLE rule_config_value (
config_column STRING,
config_value STRING
) STORED AS ORC;
INSERT INTO TABLE rule_config_value VALUES ("empid","5");
INSERT INTO TABLE rule_config_value VALUES ("state","NJ");
INSERT INTO TABLE rule_config_value VALUES ("country","United States");
select count(*) from rule_config_value;
输出获取:
+------+
| _c0 |
+------+
+------+
尝试了一些步骤,但没有成功:
analyze table rule_config_value compute statistics;
analyze table rule_config_value compute statistics for columns config_column,config_value;
答案 0 :(得分:0)
尝试:
select `_c0` from rule_config_value;