diff --git a/ibis-server/resources/function_list/duckdb.csv b/ibis-server/resources/function_list/duckdb.csv index 0bebff404..60c31fb1e 100644 --- a/ibis-server/resources/function_list/duckdb.csv +++ b/ibis-server/resources/function_list/duckdb.csv @@ -4,10 +4,9 @@ scalar,add,double,col0,double,Adds two double values scalar,add,timestamp,"col0,col1","interval,date",Adds an interval to a date scalar,add,timestamp with time zone,"col0,col1","date,time with time zone",Adds a date to a time with time zone scalar,yearweek,bigint,ts,interval,Extract the yearweek component from a date or timestamp -scalar,array_dot_product,float,"array1,array2","float[any],float[any]",Compute the inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments. +scalar,array_dot_product,float,"array1,array2","array,array",Compute the inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments. scalar,array_grade_up,array,"list,col1","array,varchar",Returns the index of their sorted position. -scalar,array_negative_inner_product,float,"array1,array2","float[any],float[any]",Compute the negative inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments. -scalar,array_position,integer,"list,element","array,any","Returns the index of the element if the list contains the element. If the element is not found, it returns NULL." +scalar,array_negative_inner_product,float,"array1,array2","array,array",Compute the negative inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments. scalar,array_value,array,,,Create an ARRAY containing the argument values. scalar,bit_count,tinyint,x,smallint,Returns the number of bits that are set scalar,datediff,bigint,"part,startdate,enddate","varchar,timestamp,timestamp",The number of partition boundaries between the timestamps @@ -18,8 +17,6 @@ scalar,dayofmonth,bigint,ts,timestamp,Extract the dayofmonth component from a da scalar,dayofyear,bigint,ts,interval,Extract the dayofyear component from a date or timestamp scalar,dayofyear,bigint,ts,timestamp with time zone,Extract the dayofyear component from a date or timestamp scalar,decade,bigint,ts,timestamp with time zone,Extract the decade component from a date or timestamp -scalar,ends_with,boolean,"col0,col1","varchar,varchar",Checks if the first string ends with the second string -scalar,finalize,invalid,col0,aggregate_state,Finalizes an aggregate state scalar,typeof,varchar,expression,any,Returns the name of the data type of the result of the expression scalar,txid_current,ubigint,,,Returns the current transaction’s ID (a BIGINT). It will assign a new one if the current transaction does not have one already scalar,get_current_timestamp,timestamp with time zone,,,Returns the current timestamp @@ -38,15 +35,11 @@ scalar,json_extract_path,json,"col0,col1","json,varchar",Extracts a JSON value f scalar,json_merge_patch,json,,,Merges two JSON objects scalar,json_valid,boolean,col0,varchar,Checks if a JSON string is valid scalar,to_minutes,interval,integer,bigint,Construct a minute interval -scalar,length,bigint,string,bit,Number of characters in string. -scalar,to_hex,varchar,value,varint,Converts the value to hexadecimal representation -scalar,list_has,boolean,"list,element","array,any",Returns true if the list contains the element. scalar,timezone,bigint,ts,timestamp with time zone,Extract the timezone component from a date or timestamp scalar,subtract,decimal,"col0,col1","decimal,decimal",Subtracts the second decimal value from the first -scalar,substring,varchar,"string,start","varchar,bigint",Extract substring of length characters starting from character start. Note that a start value of 1 refers to the first character of the string. scalar,list_negative_dot_product,double,"list1,list2","array,array",Compute the negative inner product between two lists scalar,make_timestamptz,timestamp with time zone,col0,bigint,Creates a timestamp with time zone from a bigint -scalar,map_extract_value,any,"map,key","any,any",Returns the value for a given key or NULL if the key is not contained in the map. The type of the key provided in the second parameter must match the type of the map’s keys else an error is returned +scalar,map_extract_value,same_as_input,"map,key","any,any",Returns the value for a given key or NULL if the key is not contained in the map. The type of the key provided in the second parameter must match the type of the map’s keys else an error is returned scalar,md5_number,hugeint,value,varchar,Returns the MD5 hash of the value as an INT128 scalar,microsecond,bigint,ts,time with time zone,Extract the microsecond component from a date or timestamp scalar,millennium,bigint,ts,date,Extract the millennium component from a date or timestamp @@ -57,29 +50,24 @@ scalar,mod,decimal,"col0,col1","decimal,decimal",Returns the remainder of dividi scalar,multiply,tinyint,"col0,col1","tinyint,tinyint", scalar,multiply,smallint,"col0,col1","smallint,smallint", scalar,parse_filename,varchar,"string,trim_extension","varchar,boolean","Returns the last component of the path similarly to Python's os.path.basename. If trim_extension is true, the file extension will be removed (it defaults to false). separator options: system, both_slash (default), forward_slash, backslash" -scalar,sqrt,double,x,double,Returns the square root of x -scalar,radians,double,x,double,Converts degrees to radians scalar,regexp_extract,varchar,"string,pattern[,group = 0][,options]","varchar,varchar,array,varchar","If string contains the regexp pattern, returns the capturing group specified by optional parameter group. The group must be a constant value. If no group is given, it defaults to 0. A set of optional options can be set." scalar,regexp_full_match,boolean,"string,regex[,options]","varchar,varchar,varchar",Returns true if the entire string matches the regex. A set of optional options can be set. scalar,sign,tinyint,x,integer,"Returns the sign of x as -1, 0 or 1" scalar,sign,tinyint,x,hugeint,"Returns the sign of x as -1, 0 or 1" scalar,second,bigint,ts,date,Extracts the second component from a date or timestamp scalar,second,bigint,ts,timestamp,Extracts the second component from a date or timestamp -scalar,rtrim,varchar,string,varchar,Removes any occurrences of any of the characters from the right side of the string -aggregate,regr_avgx,double,"y,x","double,double","Returns the average of the independent variable for non-null pairs in a group, where x is the independent variable and y is the dependent variable." aggregate,quantile_cont,hugeint,"x,pos","hugeint,array","Returns the interpolated quantile number between 0 and 1 . If pos is a LIST of FLOATs, then the result is a LIST of the corresponding interpolated quantiles. " aggregate,quantile_cont,timestamp with time zone,"x,pos","timestamp with time zone,array","Returns the interpolated quantile number between 0 and 1 . If pos is a LIST of FLOATs, then the result is a LIST of the corresponding interpolated quantiles. " -aggregate,quantile,any,"x,pos","any,double","Returns the exact quantile number between 0 and 1 . If pos is a LIST of FLOATs, then the result is a LIST of the corresponding exact quantiles." +aggregate,quantile,same_as_input,"x,pos","any,double","Returns the exact quantile number between 0 and 1 . If pos is a LIST of FLOATs, then the result is a LIST of the corresponding exact quantiles." aggregate,min_by,integer,"arg,val","integer,hugeint",Finds the row with the minimum val. Calculates the non-NULL arg expression at that row. aggregate,min_by,blob,"arg,val","blob,hugeint",Finds the row with the minimum val. Calculates the non-NULL arg expression at that row. -aggregate,min_by,any,"arg,val","any,timestamp",Finds the row with the minimum val. Calculates the non-NULL arg expression at that row. -aggregate,min,any,arg,any,Returns the minimum value present in arg. +aggregate,min_by,same_as_input,"arg,val","any,timestamp",Finds the row with the minimum val. Calculates the non-NULL arg expression at that row. aggregate,max_by,bigint,"arg,val","bigint,double",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. aggregate,max_by,timestamp,"arg,val","timestamp,date",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. aggregate,max_by,timestamp,"arg,val","timestamp,blob",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. aggregate,max_by,timestamp with time zone,"arg,val","timestamp with time zone,hugeint",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. aggregate,max_by,decimal,"arg,val","decimal,hugeint",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. -aggregate,max_by,any,"arg,val","any,any",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. +aggregate,max_by,same_as_input,"arg,val","any,any",Finds the row with the maximum val. Calculates the non-NULL arg expression at that row. aggregate,mad,interval,x,time,Returns the median absolute deviation for the values within x. NULL values are ignored. Temporal types return a positive INTERVAL. aggregate,sum_no_overflow,decimal,arg,decimal,Internal only. Calculates the sum value for all tuples in arg without overflow checks. aggregate,reservoir_quantile,array,"x,quantile,sample_size","decimal,array,integer","Gives the approximate quantile using reservoir sampling, the sample size is optional and uses 8192 as a default size." @@ -89,7 +77,7 @@ aggregate,reservoir_quantile,array,"x,quantile,sample_size","double,array,intege aggregate,approx_quantile,decimal,"x,pos","decimal,float",Computes the approximate quantile using T-Digest. aggregate,approx_quantile,double,"x,pos","double,float",Computes the approximate quantile using T-Digest. aggregate,approx_quantile,timestamp,"x,pos","timestamp,float",Computes the approximate quantile using T-Digest. -aggregate,approx_quantile,time with time zone[],"x,pos","time with time zone,array",Computes the approximate quantile using T-Digest. +aggregate,approx_quantile,array