hive outline

hive 简介

链接

OLTP 和 OLAP 的区别

链接

hive 安装

链接

hive 测试是否安装成功

链接

hive 配置metastore三种方式

链接

hive 运行日志 数据仓库 数据仓库显示 配置

链接

hive 建表-复杂数据类型

链接

hive 计算存储中文和英文字符所需要的字节数

链接

hive 查看某表的大小

链接

hive 内部表 外部表 创建

链接

hive 分区表 静态 动态分区

链接

hive 分桶表

链接

hive 视图

链接

hive 事务表

链接

hive 拉链表

hive 拉链表

hive 查看文件系统命令

链接

hive 数据库 表 列(DDL)

链接

hive 数据导入 导出(DML)

链接

hive select查询(DQL)

链接

hive Order By Cluster By Distribute By+Sort By

链接

hive 内连接 左外连接 右外连接 满外连接 左半开连接 交叉连接 多表连接 隐式连接

链接

hive 函数分类

链接

hive 内置函数

hive 字符串函数

链接

hive 日期函数

链接

hive 数学函数

链接

hive 集合函数

链接

hive 条件函数

链接

hive 类型转换函数 cast

将int型转换为sting

select cast(12.14 as bigint);
select cast(12.14 as string);

hive 数据脱敏函数

链接

hive java_method reflect

链接

hive 用户自定义函数

链接

hive 高阶函数

hive explode

  1. explode函数接收map或者array类型的数据作为参数,然后把参数中的每个元素炸开变成一行数据
  2. 一般情况下,explode函数需结合lateral view侧视图使用

在这里插入图片描述

hive lateral view 侧视图

  1. lateral view 是一种特殊的语法,主要用于搭配UDTF类型功能的函数一起使用
  2. 侧视图的原理是将UDTF的结果构建成一个类似于视图的表,然后将原表中的每一行和UDTF函数输出的每一行进行连接,生成一张新的虚拟表。这样就避免了UDTF的使用限制问题
  3. 使用lateral view时也可以对UDTF产生的记录设置字段名称,产生的字段可以用于group by、order by 、limit等语句中
  4. 一般只要使用UDTF,就会固定搭配lateral view使用

lateral view侧视图基本语法如下

select …… from tabelA lateral view UDTF函数(字段) 别名 as col1,col2 ……;

实战演练:hive 列转行

hive explode与posexplode的区别

链接

hive 多维分析函数 Grouping sets

链接

hive 多维分析函数 Cube

链接

hive 多维分析函数 with rollup

链接

hive 窗口函数 窗口表达式 窗口排序函数 窗口分析函数

链接

hive url 解析函数

链接

hive json数据处理函数

链接

hive named_struct函数

链接

hive 调优(work)

链接

hive 数据倾斜(work)

链接

hive 注意事项

1)hive overwrite关键字的坑

链接

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值