2019年1月9日

摘要: 1.时间戳 秒数时间戳--10位 hive只支持10位的时间戳 毫秒时间戳--13位 时间-->时间戳(13位),乘以 1000 13位时间戳-->日期(除以1000) (1)时间戳(10位)-》日期:from_unixtime select from_unixtime(1441565203,'yy 阅读全文
posted @ 2019-01-09 17:56 happygril3 阅读(162) 评论(0) 推荐(0)
摘要: 1. 全局排序 order by 对输入做全局排序,因此只有一个reducer。 select ymd,symbol,price_close from stocks oreder by symbol DESC select ymd,symbol,2*price_close as salary fro 阅读全文
posted @ 2019-01-09 10:02 happygril3 阅读(114) 评论(0) 推荐(0)

导航