You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2010/10/14 23:12:16 UTC

[Hadoop Wiki] Update of "Hive/LanguageManual/UDF" by DaveBrondsema

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hive/LanguageManual/UDF" page has been changed by DaveBrondsema.
http://wiki.apache.org/hadoop/Hive/LanguageManual/UDF?action=diff&rev1=55&rev2=56

--------------------------------------------------

  ||string ||get_json_object(string json_string, string path) ||Extract json object from a json string based on json path specified, and return json string of the extracted json object. It will return null if the input json string is invalid ||
  ||string ||space(int n) ||Return a string of n spaces ||
  ||string ||repeat(string str, int n) ||Repeat str n times ||
- ||string ||ascii(string str) ||Returns the numeric value of the first character of str ||
+ ||int ||ascii(string str) ||Returns the numeric value of the first character of str ||
  ||string ||lpad(string str, int len, string pad) ||Returns str, left-padded with pad to a length of len ||
  ||string ||rpad(string str, int len, string pad) ||Returns str, right-padded with pad to a length of len ||
  ||array ||split(string str, string pat) ||Split str around pat (pat is a regular expression) ||