Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
2 changes: 1 addition & 1 deletion ibis-server/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_data_source_is_white_list(self, data_source: str) -> bool:
if not self.remote_white_function_list_path:
return False

return data_source in {"bigquery", "postgres"}
return data_source in {"bigquery", "postgres", "mysql"}


config = Config()
Expand Down
110 changes: 110 additions & 0 deletions ibis-server/resources/function_list/mysql.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,114 @@
function_type,name,return_type,param_names,param_types,description
scalar,tan,double,,,"Returns the tangent of a number."
scalar,sqrt,double,,,"Returns the square root of a number."
scalar,trim,varchar,,,"Trims the specified trim string from the start and end of a string. If no trim string is provided, all whitespace is removed from the start and end of the input string."
scalar,log10,double,,,"Returns the base-10 logarithm of a number."
scalar,nvl,varchar,,,"Returns _expression2_ if _expression1_ is NULL otherwise it returns _expression1_."
scalar,char_length,bigint,,,"Returns the number of characters in a string."
scalar,radians,double,,,"Converts degrees to radians."
scalar,ln,double,,,"Returns the natural logarithm of a number."
aggregate,bool_or,boolean,,,"Returns true if all non-null input values are true, otherwise false."
window,nth_value,same_as_input,,,"Returns the value evaluated at the nth row of the window frame (counting from 1). Returns NULL if no such row exists."
scalar,regexp_replace,varchar,,,"Replaces substrings in a string that match a regular expression."
scalar,date_format,varchar,,,"Returns a string representation of a date, time, timestamp or duration based on a format."
scalar,substr,varchar,,,"Extracts a substring of a specified number of characters from a specific starting position in a string."
scalar,ascii,int,,,"Returns the Unicode character code of the first character in a string."
scalar,regexp_instr,bigint,,,"Returns the position in a string where the specified occurrence of a POSIX regular expression is located."
scalar,character_length,bigint,,,"Returns the number of characters in a string."
aggregate,var_samp,double,,,"Returns the statistical sample variance of a set of numbers."
aggregate,var_pop,double,,,"Returns the statistical population variance of a set of numbers."
aggregate,array_agg,same_as_input_first_array_element,,,"Returns an array created from the expression elements."
scalar,floor,double,,,"Returns the nearest integer less than or equal to a number."
scalar,strpos,bigint,,,"Returns the starting position of a specified substring in a string. Positions begin at 1. If the substring does not exist in the string, the function returns 0."
scalar,md5,varchar,,,"Computes an MD5 128-bit checksum for a string expression."
scalar,signum,int,,,"Returns the sign of a number."
scalar,date_trunc,datetime,,,"Truncates a timestamp value to a specified precision."
scalar,lower,varchar,,,"Converts a string to lower-case."
scalar,length,bigint,,,"Returns the number of characters in a string."
scalar,chr,varchar,,,"Returns the character with the specified ASCII code value."
scalar,greatest,same-as-input,,,"Returns the greatest value in a list of expressions."
Comment thread
douenergy marked this conversation as resolved.
Outdated
scalar,reverse,varchar,,,"Reverses the character order of a string."
scalar,cot,double,,,"Returns the cotangent of a number."
scalar,power,double,,,"Returns a base expression raised to the power of an exponent."
aggregate,min,same-as-input,,,"Returns the minimum value in the specified column."
aggregate,bit_xor,bigint,,,"Computes the bitwise exclusive OR of all non-null input values."
aggregate,avg,decimal,,,"Returns the average of numeric values in the specified column."
aggregate,stddev_samp,decimal,,,"Returns the sample standard deviation of a set of numbers."
aggregate,sum,decimal,,,"Returns the sum of all values in the specified column."
aggregate,bit_or,bigint,,,"Computes the bitwise OR of all non-null input values."
window,last_value,same-as-input,,,"Returns value evaluated at the row that is the last row of the window frame."
scalar,round,double,,,"Rounds a number to the nearest integer."
scalar,asin,double,,,"Returns the arc sine or inverse sine of a number."
scalar,upper,varchar,,,"Converts a string to upper-case."
scalar,position,bigint,,,"Returns the starting position of a specified substring in a string."
scalar,atan2,double,,,"Returns the arc tangent or inverse tangent of `expression_y / expression_x`."
scalar,acos,double,,,"Returns the arc cosine or inverse cosine of a number."
scalar,right,varchar,,,"Returns a specified number of characters from the right side of a string."
scalar,left,varchar,,,"Returns a specified number of characters from the left side of a string."
window,first_value,same-as-input,,,"Returns value evaluated at the row that is the first row of the window frame."
scalar,datetrunc,datetime,,,"Truncates a timestamp value to a specified precision."
scalar,current_timestamp,datetime,,,"Returns the current UTC timestamp."
scalar,find_in_set,bigint,,,"Returns a value in the range of 1 to N if the string str is in the string list strlist consisting of N substrings."
scalar,to_hex,varchar,,,"Converts an integer to a hexadecimal string."
scalar,octet_length,bigint,,,"Returns the length of a string in bytes."
scalar,nullif,same-as-input,,,"Returns _null_ if _expression1_ equals _expression2_; otherwise it returns _expression1_."
scalar,replace,varchar,,,"Replaces all occurrences of a specified substring in a string with a new substring."
scalar,today,date,,,"Returns the current UTC date."
scalar,substring,varchar,,,"Extracts a substring of a specified number of characters from a specific starting position in a string."
aggregate,last_value,same-as-input,,,"Returns the last element in an aggregation group according to the requested ordering."
aggregate,nth_value,same-as-input,,,"Returns the nth value in a group of values."
scalar,instr,bigint,,,"Returns the starting position of a specified substring in a string."
scalar,coalesce,same-as-input,,,"Returns the first of its arguments that is not _null_."
scalar,concat,varchar,,,"Concatenates multiple strings together."
scalar,from_unixtime,datetime,,,"Converts an integer to RFC3339 timestamp format."
scalar,log2,double,,,"Returns the base-2 logarithm of a number."
scalar,ltrim,varchar,,,"Trims the specified trim string from the beginning of a string."
scalar,bit_length,bigint,,,"Returns the bit length of a string."
scalar,abs,same-as-input,,,"Returns the absolute value of a number."
scalar,ceil,double,,,"Returns the nearest integer greater than or equal to a number."
scalar,cos,double,,,"Returns the cosine of a number."
scalar,random,double,,,"Returns a random float value in the range [0, 1)."
scalar,version,varchar,,,"Returns the version of MySQL."
scalar,rpad,varchar,,,"Pads the right side of a string with another string to a specified string length."
scalar,rtrim,varchar,,,"Trims the specified trim string from the end of a string."
aggregate,count,bigint,,,"Returns the number of non-null values in the specified column."
aggregate,bit_and,bigint,,,"Computes the bitwise AND of all non-null input values."
aggregate,stddev_pop,double,,,"Returns the population standard deviation of a set of numbers."
aggregate,first_value,same-as-input,,,"Returns the first element in an aggregation group."
aggregate,max,same-as-input,,,"Returns the maximum value in the specified column."
aggregate,stddev,double,,,"Returns the standard deviation of a set of numbers."
window,percent_rank,double,,,"Returns the percentage rank of the current row within its partition."
window,rank,bigint,,,"Returns the rank of the current row within its partition."
window,dense_rank,bigint,,,"Returns the rank of the current row without gaps."
window,lead,same-as-input,,,"Returns value evaluated at the row that is offset rows after the current row."
window,ntile,int,,,"Integer ranging from 1 to the argument value, dividing the partition as equally as possible."
scalar,atan,double,,,"Returns the arc tangent or inverse tangent of a number."
scalar,uuid,varchar,,,"Returns uuid v4 string value."
scalar,degrees,double,,,"Converts radians to degrees."
scalar,sin,double,,,"Returns the sine of a number."
scalar,now,datetime,,,"Returns the current UTC timestamp."
scalar,log,double,,,"Returns the base-x logarithm of a number."
scalar,least,same-as-args,,,"Returns the smallest value in a list of expressions."
Comment thread
goldmedal marked this conversation as resolved.
Outdated
scalar,current_time,time,,,"Returns the current UTC time."
scalar,concat_ws,varchar,,,"Concatenates multiple strings together with a specified separator."
scalar,pi,double,,,"Returns an approximate value of π."
scalar,substring_index,varchar,,,"Returns the substring from str before count occurrences of the delimiter."
scalar,nvl2,varchar,,,"Returns _expression2_ if _expression1_ is not NULL; otherwise it returns _expression3_."
scalar,sha256,varchar,,,"Computes the SHA-256 hash of a binary string."
scalar,sha512,varchar,,,"Computes the SHA-512 hash of a binary string."
scalar,ifnull,same-as-input,,,"Returns _expression2_ if _expression1_ is NULL otherwise it returns _expression1_."
scalar,regexp_like,boolean,,,"Returns true if a regular expression has at least one match in a string."
scalar,exp,double,,,"Returns the base-e exponential of a number."
scalar,lpad,varchar,,,"Pads the left side of a string with another string to a specified string length."
scalar,repeat,varchar,,,"Returns a string with an input string repeated a specified number."
scalar,to_char,varchar,,,"Returns a string representation of a date, time, timestamp or duration based on a format."
scalar,pow,double,,,"Returns a base expression raised to the power of an exponent."
scalar,current_date,date,,,"Returns the current UTC date."
aggregate,string_agg,varchar,,,"Concatenates the values of string expressions with separator values."
aggregate,bool_and,boolean,,,"Returns true if all non-null input values are true, otherwise false."
window,lag,same-as-input,,,"Returns value evaluated at the row that is offset rows before the current row."
window,cume_dist,double,,,"Relative rank of the current row."
window,row_number,bigint,,,"Number of the current row within its partition, counting from 1."
scalar,if,bool,,"boolean,any,any","Returns one value if a condition is TRUE, or another value if a condition is FALSE"
scalar,ceiling,int,,"decimal","Returns the smallest integer value greater than or equal to a number"
scalar,datediff,int,,"date,date","Returns the number of days between two dates"
Expand Down
Loading