![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
KYkankankan
这个作者很懒,什么都没留下…
展开
-
hive学习笔记续1
-----2018.7.25 --增加列,在分区字段之前 ALTER TABLE log_message ADD COLUMNS( app_name STRING COMMENT 'application name', session_id STRING COMMENT 'the current session id'); --删除或替换列,只将需要的列写出即可,未写出的列即等于删除 ALTER...原创 2018-07-26 08:45:32 · 416 阅读 · 0 评论 -
hive学习笔记
/*hive 学习笔记*/ /*--------------------------------------------------------------------2018.7.22-------------------------------------------------------------------------------*/ /*hive基础知识: hadoop...原创 2018-07-23 08:46:56 · 809 阅读 · 0 评论 -
hive学习笔记续2
--group by 语句,常和聚合函数一起使用,sum,count,avg... hive> select year(ymd),avg(price_close) from stocks where exchange='nasdaq' and symbol='aapl' group by year(ymd); ---having语句 hive> select year(ymd...原创 2018-07-31 10:11:31 · 572 阅读 · 0 评论