hive中时间格式的处理

找到了一种奇怪但好用的处理方式:blog 目的:把time列中的秒数去掉string 写法:it select event time, concat (to_date(time),' ',cast(hour(time) as string),':',cast(minute(time) as string))ast from events  limit 10class     不足之处 时间09:0
相关文章
相关标签/搜索