Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完善hive udf函数 #14

Open
wants to merge 153 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
de887d6
调整路径,添加缺失code信息
Dec 4, 2020
d4eb05b
ip to region开个头
Dec 5, 2020
afc6099
ip to region开个头
Dec 5, 2020
d0b685a
先保存一版
Dec 5, 2020
61a6843
UDF函数更新,配置文件未加载
Dec 5, 2020
e42a963
UDF函数更新,配置文件未加载
Dec 6, 2020
0262506
合并冲突“
Dec 7, 2020
f6e00ca
读取文件流buffer读取
Dec 7, 2020
0729755
UDF函数更新
Dec 7, 2020
9e8a2c2
UDF函数更新,不能使用static变量,否则会导致出现问题
Dec 7, 2020
097355e
#UDF函数bug修复#
Jan 4, 2021
d2c0892
#add features#添加full2half 全角转半角函数
May 7, 2021
5063900
Merge remote-tracking branch 'origin/master' into master
May 7, 2021
182496d
#add features#添加full2half 全角转半角函数
May 7, 2021
a9619a6
#add session row sequence#函数
May 13, 2021
9c39dfd
#UDF函数session切割函数修复#
May 13, 2021
381bdf5
#BugFixes#UDF函数session切割函数添加异常检查
May 13, 2021
4e40724
#BugFixes#url decode编码解析
May 20, 2021
9bc2b72
#BugFixes#url decode解码优化
May 20, 2021
769de28
#add feature#ad url format功能增加
May 20, 2021
abd7763
#BugFixes#url decode编码解析
May 21, 2021
4ea18d5
#BugFixes#url decode编码解析抛出异常
Jun 10, 2021
d0f5eec
#BugFixes#修复url decode编码解析结尾为/
Jul 22, 2021
4f2157b
#Updates#解除注释区域
Aug 7, 2021
f8b3b0b
Merge remote-tracking branch 'origin/master'
Aug 7, 2021
b1101e8
#BugFixes#修复身份证有效性校验逻辑
Aug 7, 2021
ed37cf4
#BugFixes#修复身份证有效性校验逻辑,避免npe
Aug 7, 2021
440d88b
#Updates#添加udf函数
Aug 11, 2021
b189a66
#Updates#修复id_card错误函数
Aug 11, 2021
6605795
#Updates#添加map排序输出数组UDF
Aug 11, 2021
5ed3c59
#Updates#添加aray— cast,数组元素转换udf函数
Aug 12, 2021
0942659
#BugFixes#修复解析url失败报错
Aug 20, 2021
39397d2
#Updates#添加数组序列udf函数
Sep 4, 2021
b9803d9
#Updates#添加数组转换成字符串方法
Oct 27, 2021
48b12ec
#Updates#添加数组转换成字符串方法
Oct 27, 2021
7aac4f4
#Updates#添加数组序列udf函数
Oct 28, 2021
eef0390
#Updates#添加15位身份证号转18位的方法
Nov 25, 2021
14868e1
Merge remote-tracking branch 'origin/master' into master
Nov 25, 2021
a0f1b61
#Updates#修复编码习惯
Nov 25, 2021
eb2c36a
#Updates#添加违禁词UDF函数
Mar 7, 2022
828c267
#Updates#添加相关注释
Mar 7, 2022
57754f9
#Updates#修改相应返回类型
Mar 7, 2022
3168d80
#Updates#添加风控识别UDF
Mar 23, 2022
bd3f800
#Updates#返回类型转换成java string类型
Mar 23, 2022
863d7d5
#Updates#中国地区字典更新
Apr 5, 2022
28bd72c
增加url标准化函数standard_url_format,返回标准url和三级分类名称数组
zhaoyulonggt Oct 10, 2022
5b041a9
增加函数描述
zhaoyulonggt Oct 10, 2022
54e0110
Fixbug修复:修改information正则处理Bug
zhaoyulonggt Oct 10, 2022
377dee0
Fixbug修改去掉List初始化限制
zhaoyulonggt Oct 11, 2022
0e89107
Fixbug修改增加规则表配置注意事项
zhaoyulonggt Oct 11, 2022
f682924
Merge pull request #1 from zhaoyulonggt/master
phillip2019 Oct 26, 2022
7e1c351
#Updates#添加数组笛卡尔积切分方案
Oct 26, 2022
386e359
#Updates#修复数组交集bug
Oct 26, 2022
d9929f4
修复商品分类导航菜单下钻多选分类问题
zhaoyulonggt Nov 16, 2022
a44aecf
处理无参特殊url实际有参情况
zhaoyulonggt Nov 22, 2022
5e7a2ad
修复商品分类导航菜单下钻多选分类问题
zhaoyulonggt Nov 16, 2022
03d8875
处理无参特殊url实际有参情况
zhaoyulonggt Nov 22, 2022
f13f283
导航菜单URL只保留分类和市场
zhaoyulonggt Nov 24, 2022
8284c36
Merge pull request #3 from zhaoyulonggt/master
phillip2019 Nov 24, 2022
fde18ed
#Updates#添加快递单号校验UDF
Nov 24, 2022
fb024a5
#Updates#快递单号校验完善
Nov 24, 2022
5b2410a
#Updates#快递单号校验完善
Nov 24, 2022
2a44843
#Updates#快递单号校验完善
Nov 24, 2022
ddc41b9
#Updates#计算笛卡尔积UDF添加
Nov 25, 2022
6eb82a4
#FixedBug#修复数组交集BUG
Nov 25, 2022
a4aa913
#Updates#完善匹配快递单号函数
Nov 25, 2022
ab22ddb
Merge branch 'aaronshan:master' into master
phillip2019 Dec 15, 2022
486ad99
#FixedBug#修复快排之后比较方法
Dec 15, 2022
afae272
#Updates#完成正交udf变更成udtf
Dec 15, 2022
c018b95
#Updates#完成正交udf变更成udtf
Dec 15, 2022
7564d71
#Updates#完成正交udf变更成udtf
Dec 15, 2022
b4a92c5
mysql迁移修改标准化url
zhaoyulonggt Dec 30, 2022
ea06669
Merge pull request #4 from zhaoyulonggt/master
phillip2019 Dec 30, 2022
1041f81
1.合并上游代码 2.修改mysql地址
zhaoyulonggt Jan 4, 2023
bf65523
注册测试代码
zhaoyulonggt Jan 4, 2023
5359a15
#Updates#提交phash图像指纹计算udf
Mar 17, 2023
ec06089
#Updates#提交phash图像指纹计算UDF
Mar 17, 2023
939f357
#Updates#提交phash图像指纹计算UDF
Mar 17, 2023
b0129be
图片相似度拉取
zhaoyulonggt Mar 20, 2023
be403b1
Merge remote-tracking branch 'upstream/master' into upstream_master
zhaoyulonggt Mar 20, 2023
57f88bd
Merge remote-tracking branch 'upstream/master'
zhaoyulonggt Mar 20, 2023
19635ec
#Updates#提交phash图像指纹计算UDF
Mar 22, 2023
0343e6d
#Updates#图片ocr识别完善
Apr 17, 2023
e8eb6bc
#Updates#图片ocr识别完善
Apr 17, 2023
ec49126
#Updates#whisper语音识别udf上传
Apr 20, 2023
3ff2218
#Updates#语音识别添加超时设置为10分钟
Apr 21, 2023
2c3e035
#Updates#语音识别添加超时设置为10分钟
Apr 21, 2023
192b1c5
#Updates#ocr优化
May 1, 2023
629c825
Merge branch 'upstream_master'
zhaoyulonggt May 31, 2023
77990db
Merge remote-tracking branch 'upstream/master' into upstream_master
zhaoyulonggt Jun 1, 2023
96fa38d
Merge branch 'upstream_master'
zhaoyulonggt Jun 1, 2023
ba5fbf6
修复regexp_extract_all函数TXT无法转String问题
zhaoyulonggt Jun 1, 2023
288a839
Merge pull request #5 from zhaoyulonggt/master
phillip2019 Jun 1, 2023
d4f14db
#FixedBug#标准url命名提取方法异常
Jun 22, 2023
20c29fe
#ADD 新增解析User Agent信息获取device_family,os_family,os_minor,os_major,user…
zhaoyulonggt Jul 20, 2023
a847198
增加测试字符串
zhaoyulonggt Jul 20, 2023
e69eae2
Merge pull request #6 from zhaoyulonggt/master
phillip2019 Jul 20, 2023
3914d3d
#Updates#浏览器ua解析优化
Jul 25, 2023
22e61ed
#Updates#浏览器ua解析优化
Jul 25, 2023
9292731
#Updates#浏览器ua解析优化
Jul 25, 2023
71d7785
#Updates#浏览器ua解析优化
Jul 25, 2023
710016f
#Updates#浏览器ua解析优化,使用guava缓存结果,效果提升杠杠的
Jul 26, 2023
fd07289
#Updates#优化结果缓存,对于iphone设备,使用iPhone字符串
Jul 26, 2023
641b854
#Updates#添加日期格式化方法
Aug 13, 2023
e7c9732
Merge remote-tracking branch 'origin/master'
Aug 13, 2023
0359f10
#Updates#优化注解方法名称
Aug 13, 2023
0b5e60d
#Updates#添加浏览器家族解析返回值
Aug 13, 2023
e1a6a75
#FixedBugs#user_agent解析优化,针对ios1.3.1失败修复
Aug 13, 2023
cf48ad2
#FixedBugs#切换新dv到5.22
Aug 29, 2023
b549a45
Merge branch 'master' of github.com:phillip2019/hive-third-functions …
Aug 29, 2023
2e4e61e
#Updates#添加token解析函数,解析token中的user_id和其它信息
Sep 4, 2023
7121e9c
#Updates#添加token解析函数,解析token中的user_id和其它信息
Sep 4, 2023
867bb20
#Updates#添加token解析函数,解析token中的user_id和其它信息
Sep 4, 2023
8600d66
#Features#添加负向词udf方法
Sep 6, 2023
e11f01a
#Updates#添加测试,测试效率
Sep 6, 2023
1a17dba
#Updates#添加token解析函数,解析token中的user_id和其它信息
Sep 9, 2023
5f4e28f
#Updates#解析access_token完善,提取cookie中内容
Oct 24, 2023
e7e866f
#Updates#解析access_token完善,提取cookie中内容
Oct 24, 2023
991db67
#Updates#解析access_token完善, 修复反序列化异常
Nov 21, 2023
4b932b8
Merge remote-tracking branch 'origin/master'
phillip2019 Dec 28, 2023
b8a7b65
增加小程序url处理
zhaoyulonggt Feb 1, 2024
429658b
Merge pull request #7 from zhaoyulonggt/master
phillip2019 Feb 1, 2024
0f31463
#Updates#标准url修改地址
Feb 1, 2024
af857cf
#FixedBugs#修复查询标准URL地址
Feb 1, 2024
a86df29
Merge remote-tracking branch 'origin/master'
phillip2019 Feb 1, 2024
f5dddb2
#Updates#标准url参数格式化方法优化代码
phillip2019 Feb 1, 2024
3f191fd
#Updates#标准url参数格式化方法优化代码
phillip2019 Feb 3, 2024
7d9968a
#Updates#梳理,修改标准化url完成
Feb 4, 2024
a0c59e7
#Updates#doc格式化,更友好阅读
Feb 4, 2024
9752c7b
#FixedBugs#修复https://news.chinagoods.com/information/10/2021070909453…
Feb 4, 2024
0252385
#FixedBugs#修复https://m.chinagoods.com/act/eyJVbmlxdWVJZCI6Njc1LCJMYW5…
Feb 4, 2024
e671a82
#FixedBugs#修复https://www.chinagoods.com/login/?return_url=https://www…
Feb 4, 2024
266b52a
#Updates#标准url代码优化
phillip2019 Feb 4, 2024
e5783a3
#FixedBugs#修复-1下下标错误
phillip2019 Feb 4, 2024
3658153
#FixedBugs#尝试去除final方法
phillip2019 Feb 4, 2024
8c1a09b
#FixedBugs#尝试恢复老if判断形势代码
phillip2019 Feb 4, 2024
b6cf92a
#FixedBugs#先回滚代码,后续再重试
phillip2019 Feb 4, 2024
825a2f9
#FixedBugs#修复问题,找到原始参数值
phillip2019 Feb 4, 2024
8689803
增加查询设备不同时间所属食堂名称
zhaoyulonggt Jul 29, 2024
3ae1eeb
修改参数说明
zhaoyulonggt Jul 29, 2024
e2ac3e2
Merge pull request #8 from zhaoyulonggt/master
phillip2019 Jul 29, 2024
2fa17ce
#Updates#优化引入包
Jul 29, 2024
9729490
修改返回类型
zhaoyulonggt Jul 29, 2024
271b276
Merge pull request #9 from zhaoyulonggt/master
phillip2019 Jul 29, 2024
e502152
#Updates#优化引入包
Jul 29, 2024
b320eaa
跑不出来,增加缓存
zhaoyulonggt Jul 29, 2024
8329403
Merge pull request #10 from zhaoyulonggt/master
phillip2019 Jul 29, 2024
758b01d
链接过多,提出连接到initialize方法中
zhaoyulonggt Jul 29, 2024
79fa452
Merge pull request #11 from zhaoyulonggt/master
phillip2019 Jul 29, 2024
a69b6d2
#Updates#优化引入包
Jul 30, 2024
c568862
#Updates#优化引入包
Jul 30, 2024
379a5ff
注释缓存,mysql实例化放到查询方法中
zhaoyulonggt Jul 30, 2024
0b68c73
Merge pull request #12 from zhaoyulonggt/master
phillip2019 Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 85 additions & 81 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mvn clean package
如果你想跳过单元测试,可以这样运行:
```
cd ${project_home}
mvn clean package -DskipTests
mvn clean package -DskipTests -Dmaven.javadoc.skip=true
```

命令执行完成后, 将会在target目录下生成hive-third-functions-${version}-shaded.jar文件.
Expand Down Expand Up @@ -63,6 +63,7 @@ mvn clean package -DskipTests
|pinyin(string) -> string | 将汉字转换为拼音|
|md5(string) -> string | md5 哈希|
|sha256(string) -> string |sha256 哈希|
|full2half(string) -> string |将全角转换成半角|

### 2. 数组函数

Expand Down Expand Up @@ -159,7 +160,8 @@ mvn clean package -DskipTests
| 函数| 描述 |
|:--|:--|
|url_encode(value) -> string | escapes value by encoding it so that it can be safely included in URL query parameter names and values|
|url_decode(value) -> string | unescape the URL encoded value. This function is the inverse of `url_encode`. |
|url_decode(value) -> string | unescape the URL encoded value. This function is the inverse of `url_encode`. |
|standard_url_format(string,string) -> array(varchar) | The normalized url returns the standard url and the 3-level category name|

### 10. 数学函数

Expand All @@ -181,85 +183,86 @@ mvn clean package -DskipTests

```
add jar ${jar_location_dir}/hive-third-functions-${version}-shaded.jar
create temporary function array_contains as 'com.github.aaronshan.functions.array.UDFArrayContains';
create temporary function array_equals as 'com.github.aaronshan.functions.array.UDFArrayEquals';
create temporary function array_intersect as 'com.github.aaronshan.functions.array.UDFArrayIntersect';
create temporary function array_max as 'com.github.aaronshan.functions.array.UDFArrayMax';
create temporary function array_min as 'com.github.aaronshan.functions.array.UDFArrayMin';
create temporary function array_join as 'com.github.aaronshan.functions.array.UDFArrayJoin';
create temporary function array_distinct as 'com.github.aaronshan.functions.array.UDFArrayDistinct';
create temporary function array_position as 'com.github.aaronshan.functions.array.UDFArrayPosition';
create temporary function array_remove as 'com.github.aaronshan.functions.array.UDFArrayRemove';
create temporary function array_reverse as 'com.github.aaronshan.functions.array.UDFArrayReverse';
create temporary function array_sort as 'com.github.aaronshan.functions.array.UDFArraySort';
create temporary function array_concat as 'com.github.aaronshan.functions.array.UDFArrayConcat';
create temporary function array_value_count as 'com.github.aaronshan.functions.array.UDFArrayValueCount';
create temporary function array_slice as 'com.github.aaronshan.functions.array.UDFArraySlice';
create temporary function array_element_at as 'com.github.aaronshan.functions.array.UDFArrayElementAt';
create temporary function array_shuffle as 'com.github.aaronshan.functions.array.UDFArrayShuffle';
create temporary function sequence as 'com.github.aaronshan.functions.array.UDFSequence';
create temporary function array_value_count as 'com.github.aaronshan.functions.array.UDFArrayValueCount';
create temporary function bit_count as 'com.github.aaronshan.functions.bitwise.UDFBitCount';
create temporary function bitwise_and as 'com.github.aaronshan.functions.bitwise.UDFBitwiseAnd';
create temporary function bitwise_not as 'com.github.aaronshan.functions.bitwise.UDFBitwiseNot';
create temporary function bitwise_or as 'com.github.aaronshan.functions.bitwise.UDFBitwiseOr';
create temporary function bitwise_xor as 'com.github.aaronshan.functions.bitwise.UDFBitwiseXor';
create temporary function map_build as 'com.github.aaronshan.functions.map.UDFMapBuild';
create temporary function map_concat as 'com.github.aaronshan.functions.map.UDFMapConcat';
create temporary function map_element_at as 'com.github.aaronshan.functions.map.UDFMapElementAt';
create temporary function map_equals as 'com.github.aaronshan.functions.map.UDFMapEquals';
create temporary function day_of_week as 'com.github.aaronshan.functions.date.UDFDayOfWeek';
create temporary function day_of_year as 'com.github.aaronshan.functions.date.UDFDayOfYear';
create temporary function type_of_day as 'com.github.aaronshan.functions.date.UDFTypeOfDay';
create temporary function zodiac_cn as 'com.github.aaronshan.functions.date.UDFZodiacSignCn';
create temporary function zodiac_en as 'com.github.aaronshan.functions.date.UDFZodiacSignEn';
create temporary function pinyin as 'com.github.aaronshan.functions.string.UDFChineseToPinYin';
create temporary function md5 as 'com.github.aaronshan.functions.string.UDFMd5';
create temporary function sha256 as 'com.github.aaronshan.functions.string.UDFSha256';
create temporary function codepoint as 'com.github.aaronshan.functions.string.UDFCodePoint';
create temporary function hamming_distance as 'com.github.aaronshan.functions.string.UDFStringHammingDistance';
create temporary function levenshtein_distance as 'com.github.aaronshan.functions.string.UDFStringLevenshteinDistance';
create temporary function normalize as 'com.github.aaronshan.functions.string.UDFStringNormalize';
create temporary function strpos as 'com.github.aaronshan.functions.string.UDFStringPosition';
create temporary function split_to_map as 'com.github.aaronshan.functions.string.UDFStringSplitToMap';
create temporary function split_to_multimap as 'com.github.aaronshan.functions.string.UDFStringSplitToMultimap';
create temporary function json_array_get as 'com.github.aaronshan.functions.json.UDFJsonArrayGet';
create temporary function json_array_length as 'com.github.aaronshan.functions.json.UDFJsonArrayLength';
create temporary function json_array_extract as 'com.github.aaronshan.functions.json.UDFJsonArrayExtract';
create temporary function json_array_extract_scalar as 'com.github.aaronshan.functions.json.UDFJsonArrayExtractScalar';
create temporary function json_extract as 'com.github.aaronshan.functions.json.UDFJsonExtract';
create temporary function json_extract_scalar as 'com.github.aaronshan.functions.json.UDFJsonExtractScalar';
create temporary function json_size as 'com.github.aaronshan.functions.json.UDFJsonSize';
create temporary function id_card_province as 'com.github.aaronshan.functions.card.UDFChinaIdCardProvince';
create temporary function id_card_city as 'com.github.aaronshan.functions.card.UDFChinaIdCardCity';
create temporary function id_card_area as 'com.github.aaronshan.functions.card.UDFChinaIdCardArea';
create temporary function id_card_birthday as 'com.github.aaronshan.functions.card.UDFChinaIdCardBirthday';
create temporary function id_card_gender as 'com.github.aaronshan.functions.card.UDFChinaIdCardGender';
create temporary function is_valid_id_card as 'com.github.aaronshan.functions.card.UDFChinaIdCardValid';
create temporary function id_card_info as 'com.github.aaronshan.functions.card.UDFChinaIdCardInfo';
create temporary function wgs_distance as 'com.github.aaronshan.functions.geo.UDFGeoWgsDistance';
create temporary function gcj_to_bd as 'com.github.aaronshan.functions.geo.UDFGeoGcjToBd';
create temporary function bd_to_gcj as 'com.github.aaronshan.functions.geo.UDFGeoBdToGcj';
create temporary function wgs_to_gcj as 'com.github.aaronshan.functions.geo.UDFGeoWgsToGcj';
create temporary function gcj_to_wgs as 'com.github.aaronshan.functions.geo.UDFGeoGcjToWgs';
create temporary function gcj_extract_wgs as 'com.github.aaronshan.functions.geo.UDFGeoGcjExtractWgs';
create temporary function url_encode as 'com.github.aaronshan.functions.url.UDFUrlEncode';
create temporary function url_decode as 'com.github.aaronshan.functions.url.UDFUrlDecode';
create temporary function infinity as 'com.github.aaronshan.functions.math.UDFMathInfinity';
create temporary function is_finite as 'com.github.aaronshan.functions.math.UDFMathIsFinite';
create temporary function is_infinite as 'com.github.aaronshan.functions.math.UDFMathIsInfinite';
create temporary function nan as 'com.github.aaronshan.functions.math.UDFMathNaN';
create temporary function is_nan as 'com.github.aaronshan.functions.math.UDFMathIsNaN';
create temporary function from_base as 'com.github.aaronshan.functions.math.UDFMathFromBase';
create temporary function to_base as 'com.github.aaronshan.functions.math.UDFMathToBase';
create temporary function cosine_similarity as 'com.github.aaronshan.functions.math.UDFMathCosineSimilarity';
create temporary function normal_cdf as 'com.github.aaronshan.functions.math.UDFMathNormalCdf';
create temporary function inverse_normal_cdf as 'com.github.aaronshan.functions.math.UDFMathInverseNormalCdf';
create temporary function regexp_extract as 'com.github.aaronshan.functions.regexp.UDFRe2JRegexpExtract';
create temporary function regexp_extract_all as 'com.github.aaronshan.functions.regexp.UDFRe2JRegexpExtractAll';
create temporary function regexp_like as 'com.github.aaronshan.functions.regexp.UDFRe2JRegexpLike';
create temporary function regexp_replace as 'com.github.aaronshan.functions.regexp.UDFRe2JRegexpReplace';
create temporary function regexp_split as 'com.github.aaronshan.functions.regexp.UDFRe2JRegexpSplit';
create temporary function array_contains as 'UDFArrayContains';
create temporary function array_equals as 'UDFArrayEquals';
create temporary function array_intersect as 'UDFArrayIntersect';
create temporary function array_max as 'UDFArrayMax';
create temporary function array_min as 'UDFArrayMin';
create temporary function array_join as 'UDFArrayJoin';
create temporary function array_distinct as 'UDFArrayDistinct';
create temporary function array_position as 'UDFArrayPosition';
create temporary function array_remove as 'UDFArrayRemove';
create temporary function array_reverse as 'UDFArrayReverse';
create temporary function array_sort as 'UDFArraySort';
create temporary function array_concat as 'UDFArrayConcat';
create temporary function array_value_count as 'UDFArrayValueCount';
create temporary function array_slice as 'UDFArraySlice';
create temporary function array_element_at as 'UDFArrayElementAt';
create temporary function array_shuffle as 'UDFArrayShuffle';
create temporary function sequence as 'UDFSequence';
create temporary function array_value_count as 'UDFArrayValueCount';
create temporary function bit_count as 'UDFBitCount';
create temporary function bitwise_and as 'UDFBitwiseAnd';
create temporary function bitwise_not as 'UDFBitwiseNot';
create temporary function bitwise_or as 'UDFBitwiseOr';
create temporary function bitwise_xor as 'UDFBitwiseXor';
create temporary function map_build as 'UDFMapBuild';
create temporary function map_concat as 'UDFMapConcat';
create temporary function map_element_at as 'UDFMapElementAt';
create temporary function map_equals as 'UDFMapEquals';
create temporary function day_of_week as 'UDFDayOfWeek';
create temporary function day_of_year as 'UDFDayOfYear';
create temporary function type_of_day as 'UDFTypeOfDay';
create temporary function zodiac_cn as 'UDFZodiacSignCn';
create temporary function zodiac_en as 'UDFZodiacSignEn';
create temporary function pinyin as 'UDFChineseToPinYin';
create temporary function md5 as 'UDFMd5';
create temporary function sha256 as 'UDFSha256';
create temporary function codepoint as 'UDFCodePoint';
create temporary function hamming_distance as 'UDFStringHammingDistance';
create temporary function levenshtein_distance as 'UDFStringLevenshteinDistance';
create temporary function normalize as 'UDFStringNormalize';
create temporary function strpos as 'UDFStringPosition';
create temporary function split_to_map as 'UDFStringSplitToMap';
create temporary function split_to_multimap as 'UDFStringSplitToMultimap';
create temporary function json_array_get as 'UDFJsonArrayGet';
create temporary function json_array_length as 'UDFJsonArrayLength';
create temporary function json_array_extract as 'UDFJsonArrayExtract';
create temporary function json_array_extract_scalar as 'UDFJsonArrayExtractScalar';
create temporary function json_extract as 'UDFJsonExtract';
create temporary function json_extract_scalar as 'UDFJsonExtractScalar';
create temporary function json_size as 'UDFJsonSize';
create temporary function id_card_province as 'UDFChinaIdCardProvince';
create temporary function id_card_city as 'UDFChinaIdCardCity';
create temporary function id_card_area as 'UDFChinaIdCardArea';
create temporary function id_card_birthday as 'UDFChinaIdCardBirthday';
create temporary function id_card_gender as 'UDFChinaIdCardGender';
create temporary function is_valid_id_card as 'UDFChinaIdCardValid';
create temporary function id_card_info as 'UDFChinaIdCardInfo';
create temporary function wgs_distance as 'UDFGeoWgsDistance';
create temporary function gcj_to_bd as 'UDFGeoGcjToBd';
create temporary function bd_to_gcj as 'UDFGeoBdToGcj';
create temporary function wgs_to_gcj as 'UDFGeoWgsToGcj';
create temporary function gcj_to_wgs as 'UDFGeoGcjToWgs';
create temporary function gcj_extract_wgs as 'UDFGeoGcjExtractWgs';
create temporary function url_encode as 'UDFUrlEncode';
create temporary function url_decode as 'UDFUrlDecode';
create temporary function infinity as 'UDFMathInfinity';
create temporary function is_finite as 'UDFMathIsFinite';
create temporary function is_infinite as 'UDFMathIsInfinite';
create temporary function nan as 'UDFMathNaN';
create temporary function is_nan as 'UDFMathIsNaN';
create temporary function from_base as 'UDFMathFromBase';
create temporary function to_base as 'UDFMathToBase';
create temporary function cosine_similarity as 'UDFMathCosineSimilarity';
create temporary function normal_cdf as 'UDFMathNormalCdf';
create temporary function inverse_normal_cdf as 'UDFMathInverseNormalCdf';
create temporary function regexp_extract as 'UDFRe2JRegexpExtract';
create temporary function regexp_extract_all as 'UDFRe2JRegexpExtractAll';
create temporary function regexp_like as 'UDFRe2JRegexpLike';
create temporary function regexp_replace as 'UDFRe2JRegexpReplace';
create temporary function regexp_split as 'UDFRe2JRegexpSplit';
create temporary function standard_url_format as 'UDFStandardUrlFormat';
```

你可以在hive的命令杭中使用下面的语句来查看函数的细节.
Expand Down Expand Up @@ -361,6 +364,7 @@ select gcj_extract_wgs(39.915, 116.404) => {"lng":116.39775549316407,"lat":39.91

```
select url_encode('http://shanruifeng.cc/') => http%3A%2F%2Fshanruifeng.cc%2F
select standard_url_format('wap','https://m.chinagoods.com/en/venue?id=14&dsds=d') => ["https://m.chinagoods.com/en/venue/?id=14","营销会场","营销会场","测试-领券中心"]
```

```
Expand Down
Loading