项目作者: myui

项目描述 :
Backports of Hive 2.2.0 UDF functions to Hive 0.13.0 or later
高级语言: Java
项目地址: git://github.com/myui/hive-udf-backports.git
创建时间: 2017-01-06T12:07:03Z
项目社区:https://github.com/myui/hive-udf-backports

开源协议:Apache License 2.0

下载


Version License
Hive

Backports of Hive 2.2.0 UDF functions to Hive 0.13.0.

Find the list of backported functions in this DDL.

Usage

  1. -- build jars
  2. $ bin/build.sh
  3. -- run Hive cli session
  4. $ hive
  1. -- deploy jar
  2. add jar target/hive-udf-backports-x.y.z.jar;
  3. -- load functions
  4. source resources/create-functions.hive;

Maven repository

  1. <dependency>
  2. <groupId>io.github.myui</groupId>
  3. <artifactId>hive-udf-backports</artifactId>
  4. <version>0.0.2</version>
  5. </dependency>

List of Functions

  1. -- since v1.1.0
  2. greatest
  3. least
  4. add_months
  5. last_day
  6. initcap
  7. -- since v1.2.0
  8. factorial
  9. cbrt
  10. shiftleft
  11. shiftright
  12. shiftrightunsigned
  13. current_date
  14. current_timestamp
  15. next_day
  16. trunc
  17. months_between
  18. date_format
  19. levenshtein
  20. soundex
  21. -- since v1.3.0
  22. quarter
  23. chr
  24. replace
  25. substring_index
  26. md5
  27. sha1
  28. crc32
  29. sha2
  30. aes_encrypt
  31. aes_decrypt
  32. -- since v2.1.0
  33. mask
  34. mask_first_n
  35. mask_last_n
  36. mask_show_first_n
  37. mask_show_last_n
  38. mask_hash
  39. -- since v2.2.0
  40. nullif
  41. character_length
  42. regr_avgx
  43. regr_avgy
  44. regr_count
  45. regr_intercept
  46. regr_r2
  47. regr_slope
  48. regr_sxx
  49. regr_sxy
  50. regr_syy