首页 > 其他 > 详细

[Hive_6] Hive 的内置函数应用

时间:2019-01-05 13:15:02      阅读:138      评论:0      收藏:0      [点我收藏+]

0. 说明

 

 

 


 

 


 5. explode

  5.1 描述

  separates the elements of array a into multiple rows
  or the elements of a map into multiple rows and columns

  分裂 array 数组的中的元素变成多行
  或者分裂 map 中的元素变成多行和多列
  是一个表生成函数

  5.2 使用方法

  explode(array)

 

 


 

6. split

  6.1 描述

  Splits str around occurances that match regex

  拆分与正则表达式匹配的事件

 

  6.2 使用方法

  split(str, regex)

 

 


7. substr

  7.1 描述

  截取从指定位置开始指定长度的的字符串

  默认从第一位开始截取

 

  7.2 使用方法

  substr(str, pos[, len])

 

 

 


 

[Hive_6] Hive 的内置函数应用

原文:https://www.cnblogs.com/share23/p/10223898.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!