Hive中的explode()函數和collect_set()函數

最近在Hive中查詢測試數據用到explode()函數比較多,因此今天整理一下,方便之後查閱。sql 1.substr()函數 substr()是字符串截取函數,其語法爲: substr(string A, int start, int len),返回值爲 string類型。說明:返回字符串A從start位置開始,長度爲len的字符串。這裏須要注意的是初始位置是從1開始。網絡 2.explode(
相關文章
相關標籤/搜索