presto:来自information_schema.columns的查询时出错

时间:2017-02-08 09:07:25

标签: presto

在presto客户端中运行sql select * from hive.information_schema.columns;时。我收到错误信息:

  

查询20170208_085534_00061_ny9tu失败:不应从null StorageFormat访问outputFormat

但是,当从select * from hive.information_schema.tables;

这样的information_schema中的其他表中选择时,它会成功

有人可以帮忙吗?

感谢。

1 个答案:

答案 0 :(得分:1)

这是由具有我们不期望的元数据的表引起的错误。

我扫描hive中的所有表并找到一些表'InputFormat / OutputFormat为null。如果我DESCRIBE TABLENAME对于那些在presto中具有null InputFormat / OutputFormat的表,它将获得相同的错误信息。

reference