return type |
Function |
Description |
Int |
Length (String A) |
Returns the length of a string |
String |
Reverse (String A) |
Returns the reverse string |
String |
Concat (String A, String B ...) |
Concatenate multiple strings, merge into a single string, and accept any number of input strings |
String |
Concat_ws (String SEP, String A, String B ...) |
Links multiple strings, separating the strings with the specified delimiter. |
String |
SUBSTR (string A, int start) substring (string a, int start) |
The character from the starting position specified in the text string. |
String |
SUBSTR (string A, int start, int len) substring (string A, int start, int len) |
Specifies the length of the character from the position specified in the text string. |
String |
Upper (String a) UCase (string a) |
Converts a text string to all uppercase letters |
String |
Lower (String a) LCase (string a) |
Converts a text string into all lowercase letters |
String |
Trim (String A) |
Remove spaces at both ends of a string, preserving spaces between characters |
String |
LTrim (String A) |
Remove the space to the left of the string, leaving the other spaces |
String |
RTrim (String A) |
Remove the space to the right of the string, leaving the other spaces |
String |
Regexp_replace (String A, String B, String C) |
The B character in string A is replaced by the C character |
String |
Regexp_extract (string subject, string pattern, int index) |
Returns the portion of the regular expression specified by the subscript. Regexp_extract (' Foothebar ', ' foo (. *?) (bar) ', 2) returns ' Bar. ' |
String |
Parse_url (String urlstring, String parttoextract [, String keytoextract]) |
Returns the specified portion of the URL. Parse_url (' http://facebook.com/path1/p.php?k1=v1&k2=v2#ref1′, ' HOST ') return: ' Facebook.com ' |
String |
Get_json_object (string json_string, String path) |
Select A.timestamp, Get_json_object (a.appevents, ' $.eventid '), Get_json_object (a.appenvets, ' $.eventname ') from log A; |
String |
Space (int n) |
Returns the specified number of spaces |
String |
Repeat (string str, int n) |
Repeats n-Times string |
Int |
ASCII (String str) |
Returns the numeric value of the first character in a string |
String |
Lpad (string str, int len, string pad) |
Returns a string of the specified length, filled by the specified character from the left side when the given string length is less than the specified length. |
String |
Rpad (string str, int len, string pad) |
Returns a string of the specified length, filled by the specified character from the right side when the given string length is less than the specified length. |
Array |
Split (String str, string pat) |
Converts a string to an array. |
Int |
Find_in_set (String str, string strlist) |
Returns the position of the first occurrence of the string str in strlist. Returns null if either parameter is NULL, or 0 if the first argument contains a comma. |
Array<array<string>> |
Sentences (string str, string lang, string locale) |
Groups the contents of a string by a statement, separating each word with a comma, and finally returning an array. For example sentences (' Hello there! How is it? ') Return: (("Hello", "There"), ("How", "is", "you") |
Array<struct<string,double>> |
Ngrams (array<array<string>>, int N, int K, int pf) |
SELECT ngrams (Sentences (lower (tweet)), 2, [+]) from Twitter; |
Array<struct<string,double>> |
Context_ngrams (ARRAY<ARRAY<STRING>>, array<string>, int K, int pf) |
SELECT context_ngrams (Sentences (lower), Array (null,null), + [, +]) from Twitter; |