hive 字符串切割
时间: 2023-08-28 11:23:17 浏览: 202
在Hive中,可以使用split函数对字符串进行切割。该函数的语法是split(string str, string pat),它按照pat字符串对str进行分割,并返回分割后的字符串数组。举例来说,如果我们要将字符串'abcdef'按照字符'c'进行分割,可以使用以下语句:
split('abcdef', 'c')
这将返回一个包含两个元素的字符串数组:["ab", "def"]。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [hive字符串的分割,截取,替换与正则匹配。](https://blog.csdn.net/weixin_43668299/article/details/93379138)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Hive函数03_字符串分割切片截取函数](https://blog.csdn.net/ZZQHELLO2018/article/details/103400521)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文