0
点赞
收藏
分享

微信扫一扫

hive outline


导航

  • ​​hive 简介​​
  • ​​OLTP 和 OLAP 的区别​​
  • ​​hive 安装​​
  • ​​hive 测试是否安装成功​​
  • ​​hive 配置metastore三种方式​​
  • ​​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​​
  • ​​hive 数据脱敏函数​​
  • ​​hive java_method reflect​​
  • ​​hive 用户自定义函数​​
  • ​​hive 高阶函数​​
  • ​​hive explode​​
  • ​​hive lateral view 侧视图​​
  • ​​hive 增强聚合函数 Grouping sets​​
  • ​​hive 增强聚合函数 Cube​​
  • ​​hive 增强聚合函数 with rollup​​
  • ​​hive 窗口函数 窗口表达式 窗口排序函数 窗口分析函数​​
  • ​​hive url 解析函数​​
  • ​​hive json数据处理函数​​
  • ​​hive 调优(work)​​
  • ​​hive 数据倾斜(work)​​
  • ​​hive 小文件产生的原因 危害 解决方案(work)​​
  • ​​hive join 的工作机制(work)​​
  • ​​hive 面试(work)​​

hive 简介

​​链接​​

OLTP 和 OLAP 的区别

​​链接​​

hive 安装

​​链接​​

hive 测试是否安装成功

​​链接​​

hive 配置metastore三种方式

​​链接​​

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 outline_聚合函数

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 增强聚合函数 Grouping sets

hive 增强聚合函数 Cube

hive 增强聚合函数 with rollup

​​链接​​

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

​​链接​​

hive url 解析函数

​​链接​​

hive json数据处理函数

​​链接​​

hive 调优(work)

​​链接​​

hive 数据倾斜(work)

​​链接​​

hive 小文件产生的原因 危害 解决方案(work)

​​链接​​

hive join 的工作机制(work)

​​链接​​

hive 面试(work)

​​链接​​


举报

相关推荐

0 条评论