没有显示蜂巢中字符串null数据的结果
我在Hive中有一个外部表,其中装有一些空数据。
以下查询都没有返回任何结果:
select * FROM db.table where bankrupt IS NULL;
select * FROM db.table where bankrupt = '';
select * FROM db.table where bankrupt = ' ';
但是从db.table;
中选择不同的长度(破产); 是返回值1。
样本数据: (由客户提供) 295.12 | 31/12/2021 | | |
破产是最后一列。
I have an external table in hive which was loaded with some NULL data.
None of the below queries are returning any results:
select * FROM db.table where bankrupt IS NULL;
select * FROM db.table where bankrupt = '';
select * FROM db.table where bankrupt = ' ';
But select DISTINCT length(bankrupt) FROM db.table;
Is returning value 1.
Sample data:
(provided by client)295.12|31/12/2021| | |
Bankrupt is the last column.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您所说的是正确的,并且此行仅返回1个值,则意味着您只有一个定义值。或者,您只有无效的值。如果您确定有零值,则可能只是一种很小的语法不便。因为您的代码行是正确的
If what you said is true, and this row returns only 1 value, it means that either you only have only one single defined value. Or you only have null values, neitherless. If you are sure there is null values, maybe is just a tiny syntax inconvenience. Because your line of code is correct