求助:hive 1.1版本cast(timestamp as date) 的问题

me365n 2017-10-18 11:22:55
在hive1.1版本上运行以下sql :
select start_time,cast(o.start_time as date) = '2017-10-17',order_no from wedw_dw.consult_order_df o where order_no='17101717104618467552' and cast(o.start_time as date) ='2017-10-17';
返回:
+-------------+-------+-----------------------+--+
| start_time | _c1 | order_no |
+-------------+-------+-----------------------+--+
| NULL | NULL | 17101717104618467552 |
+-------------+-------+-----------------------+--+
但是在hive1.0版本上运行 返回的是
+-------------+-------+-----------------------+--+
| start_time | _c1 | order_no |
+-------------+-------+-----------------------+--+
| 2017-10-17 20:00:00 | true | 17101717104618467552 |
+-------------+-------+-----------------------+--+
这是为什么呢?难道是hive1.1的bug?
...全文
322 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,208

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 其他数据库
社区管理员
  • 其他数据库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧