很快就显示一切为空

问题描述 投票:0回答:1

我配置了单节点 Presto 集群,并且能够根据自定义 s3 服务中的数据创建表。然而,当我尝试查询像

select * from test limit 10;
这样的数据时,我得到的结果是这样的 -

 time | quality |  o3
------+---------+------
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL
 NULL | NULL    | NULL

我的 hive-metastore 也很稳定并且工作正常。但我无法理解为什么我得到的数据为空。但是,当我查询

SELECT COUNT(*) FROM test
的数据时,我得到的结果类似于 25;行。这意味着该表中有数据。我应该如何解决这个问题?

我对 presto 很陌生。需要帮忙!

mysql postgresql amazon-s3 presto presto-jdbc
1个回答
0
投票

这里同样的问题。问题出在您生成的镶木地板文件上。也许架构与您的文件不匹配。 (您可以使用 Pyarrow 加载 parquet 文件并检查架构。 我在0.284 Presto集群(最新版本)上进行了实验。

© www.soinside.com 2019 - 2024. All rights reserved.