Skip to content

Commit 9b0f092

Browse files
committed
chore(function-list): lowercase the function name and add missed timestamp functions for bigquery (#894)
1 parent 9e8d082 commit 9b0f092

File tree

9 files changed

+464
-461
lines changed

9 files changed

+464
-461
lines changed
+102-99
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,103 @@
11
function_type,name,return_type,description
2-
aggregate,COUNTIF,INT64,"Counts the rows where a condition is true."
3-
aggregate,CORR,FLOAT64,"Calculates the correlation coefficient of a set of numbers."
4-
aggregate,COVAR_POP,FLOAT64,"Calculates the population covariance of a set of numbers."
5-
aggregate,COVAR_SAMP,FLOAT64,"Calculates the sample covariance of a set of numbers."
6-
aggregate,STDDEV_POP,FLOAT64,"Calculates the population standard deviation of a set of numbers."
7-
aggregate,STDDEV_SAMP,FLOAT64,"Calculates the sample standard deviation of a set of numbers."
8-
aggregate,VAR_POP,FLOAT64,"Calculates the population variance of a set of numbers."
9-
aggregate,VAR_SAMP,FLOAT64,"Calculates the sample variance of a set of numbers."
10-
aggregate,BIT_AND,INT64,"Returns the bitwise AND of non-NULL input values."
11-
aggregate,BIT_OR,INT64,"Returns the bitwise OR of non-NULL input values."
12-
aggregate,BIT_XOR,INT64,"Returns the bitwise XOR of non-NULL input values."
13-
aggregate,ANY_VALUE,ANY,"Returns any arbitrary value from the input values."
14-
aggregate,ARRAY_AGG,ARRAY,"Aggregates values into an array."
15-
aggregate,STRING_AGG,STRING,"Aggregates string values with a delimiter."
16-
aggregate,COUNT,INT64,"Counts the number of rows."
17-
aggregate,MAX,ANY,"Returns the maximum value."
18-
aggregate,MIN,ANY,"Returns the minimum value."
19-
aggregate,SUM,ANY,"Returns the sum of values."
20-
aggregate,AVG,FLOAT64,"Returns the average of values."
21-
scalar,ACOS,FLOAT64,"Returns the arccosine of a number."
22-
scalar,ASIN,FLOAT64,"Returns the arcsine of a number."
23-
scalar,ATAN,FLOAT64,"Returns the arctangent of a number."
24-
scalar,ATAN2,FLOAT64,"Returns the arctangent of two numbers."
25-
scalar,COS,FLOAT64,"Returns the cosine of a number."
26-
scalar,COSH,FLOAT64,"Returns the hyperbolic cosine of a number."
27-
scalar,SIN,FLOAT64,"Returns the sine of a number."
28-
scalar,SINH,FLOAT64,"Returns the hyperbolic sine of a number."
29-
scalar,TAN,FLOAT64,"Returns the tangent of a number."
30-
scalar,TANH,FLOAT64,"Returns the hyperbolic tangent of a number."
31-
scalar,GREATEST,ANY,"Returns the greatest value in a list of expressions."
32-
scalar,LEAST,ANY,"Returns the least value in a list of expressions."
33-
scalar,NULLIFZERO,FLOAT64,"Returns NULL if the input is zero."
34-
scalar,ZEROIFNULL,FLOAT64,"Returns zero if the input is NULL."
35-
scalar,FORMAT,STRING,"Formats values into a string."
36-
scalar,LPAD,STRING,"Pads a string on the left to a certain length."
37-
scalar,RPAD,STRING,"Pads a string on the right to a certain length."
38-
scalar,LEFT,STRING,"Returns a substring from the beginning of a string."
39-
scalar,RIGHT,STRING,"Returns a substring from the end of a string."
40-
scalar,STARTS_WITH,BOOL,"Returns TRUE if the string starts with the specified prefix."
41-
scalar,ENDS_WITH,BOOL,"Returns TRUE if the string ends with the specified suffix."
42-
scalar,ARRAY_LENGTH,INT64,"Returns the length of an array."
43-
scalar,ARRAY_REVERSE,ARRAY,"Reverses the elements in an array."
44-
scalar,ARRAY_CONCAT,ARRAY,"Concatenates multiple arrays into one."
45-
scalar,ARRAY_TO_STRING,STRING,"Converts an array to a single string."
46-
scalar,GENERATE_ARRAY,ARRAY,"Generates an array of values in a range."
47-
scalar,GENERATE_DATE_ARRAY,ARRAY,"Generates an array of dates in a range."
48-
scalar,PARSE_TIMESTAMP,TIMESTAMP,"Parses a timestamp from a string."
49-
scalar,STRING_TO_ARRAY,ARRAY,"Splits a string into an array of substrings."
50-
scalar,SAFE_DIVIDE,FLOAT64,"Divides two numbers, returning NULL if the divisor is zero."
51-
scalar,SAFE_MULTIPLY,FLOAT64,"Multiplies two numbers, returning NULL if an overflow occurs."
52-
scalar,SAFE_ADD,FLOAT64,"Adds two numbers, returning NULL if an overflow occurs."
53-
scalar,SAFE_SUBTRACT,FLOAT64,"Subtracts two numbers, returning NULL if an overflow occurs."
54-
scalar,ABS,FLOAT64,"Returns the absolute value of a number."
55-
scalar,CEIL,INT64,"Rounds up to the nearest integer."
56-
scalar,FLOOR,INT64,"Rounds down to the nearest integer."
57-
scalar,ROUND,FLOAT64,"Rounds to the specified number of decimal places."
58-
scalar,TRUNC,FLOAT64,"Truncates to the specified number of decimal places."
59-
scalar,POW,FLOAT64,"Returns a number raised to a power."
60-
scalar,SQRT,FLOAT64,"Returns the square root of a number."
61-
scalar,LOG,FLOAT64,"Returns the natural logarithm of a number."
62-
scalar,LOG10,FLOAT64,"Returns the base-10 logarithm of a number."
63-
scalar,CONCAT,STRING,"Concatenates two or more strings."
64-
scalar,LOWER,STRING,"Converts a string to lowercase."
65-
scalar,UPPER,STRING,"Converts a string to uppercase."
66-
scalar,TRIM,STRING,"Removes leading and trailing whitespace."
67-
scalar,LTRIM,STRING,"Removes leading whitespace."
68-
scalar,RTRIM,STRING,"Removes trailing whitespace."
69-
scalar,LENGTH,INT64,"Returns the length of a string."
70-
scalar,REGEXP_CONTAINS,BOOL,"Returns TRUE if the string contains a match for the regex."
71-
scalar,REGEXP_EXTRACT,STRING,"Extracts the first match of the regex from the string."
72-
scalar,REGEXP_REPLACE,STRING,"Replaces all matches of the regex with a replacement string."
73-
scalar,SUBSTR,STRING,"Returns a substring."
74-
scalar,CAST,ANY,"Converts a value to a different data type."
75-
scalar,SAFE_CAST,ANY,"Converts a value to a different data type, returning NULL on error."
76-
scalar,CURRENT_DATE,DATE,"Returns the current date."
77-
scalar,DATE_ADD,DATE,"Adds a specified interval to a date."
78-
scalar,DATE_SUB,DATE,"Subtracts a specified interval from a date."
79-
scalar,DATE_DIFF,INT64,"Returns the difference between two dates."
80-
scalar,DATE_TRUNC,DATE,"Truncates a date to a specified granularity."
81-
scalar,TIMESTAMP_ADD,TIMESTAMP,"Adds a specified interval to a timestamp."
82-
scalar,TIMESTAMP_SUB,TIMESTAMP,"Subtracts a specified interval from a timestamp."
83-
scalar,TIMESTAMP_DIFF,INT64,"Returns the difference between two timestamps."
84-
scalar,TIMESTAMP_TRUNC,TIMESTAMP,"Truncates a timestamp to a specified granularity."
85-
scalar,FORMAT_DATE,STRING,"Formats a date according to the specified format string."
86-
scalar,FORMAT_TIMESTAMP,STRING,"Formats a timestamp according to the specified format string."
87-
scalar,PARSE_DATE,DATE,"Parses a date from a string."
88-
window,NTILE,INT64,"Divides rows into a specified number of buckets and assigns a bucket number."
89-
window,PERCENT_RANK,FLOAT64,"Calculates the percent rank of a value in a partition."
90-
window,CUME_DIST,FLOAT64,"Calculates the cumulative distribution of a value in a partition."
91-
window,NTH_VALUE,ANY,"Returns the nth value in a window partition."
92-
window,PERCENTILE_CONT,FLOAT64,"Computes a continuous percentile of a value."
93-
window,PERCENTILE_DISC,ANY,"Computes a discrete percentile of a value."
94-
window,ROW_NUMBER,INT64,"Returns the sequential row number."
95-
window,RANK,INT64,"Returns the rank with gaps."
96-
window,DENSE_RANK,INT64,"Returns the rank without gaps."
97-
window,LAG,ANY,"Returns the value from a previous row."
98-
window,LEAD,ANY,"Returns the value from a subsequent row."
99-
window,FIRST_VALUE,ANY,"Returns the first value in the window frame."
100-
window,LAST_VALUE,ANY,"Returns the last value in the window frame."
2+
aggregate,countif,INT64,"Counts the rows where a condition is true."
3+
aggregate,corr,FLOAT64,"Calculates the correlation coefficient of a set of numbers."
4+
aggregate,covar_pop,FLOAT64,"Calculates the population covariance of a set of numbers."
5+
aggregate,covar_samp,FLOAT64,"Calculates the sample covariance of a set of numbers."
6+
aggregate,stddev_pop,FLOAT64,"Calculates the population standard deviation of a set of numbers."
7+
aggregate,stddev_samp,FLOAT64,"Calculates the sample standard deviation of a set of numbers."
8+
aggregate,var_pop,FLOAT64,"Calculates the population variance of a set of numbers."
9+
aggregate,var_samp,FLOAT64,"Calculates the sample variance of a set of numbers."
10+
aggregate,bit_and,INT64,"Returns the bitwise AND of non-NULL input values."
11+
aggregate,bit_or,INT64,"Returns the bitwise OR of non-NULL input values."
12+
aggregate,bit_xor,INT64,"Returns the bitwise XOR of non-NULL input values."
13+
aggregate,any_value,ANY,"Returns any arbitrary value from the input values."
14+
aggregate,array_agg,ARRAY,"Aggregates values into an array."
15+
aggregate,string_agg,STRING,"Aggregates string values with a delimiter."
16+
aggregate,count,INT64,"Counts the number of rows."
17+
aggregate,max,ANY,"Returns the maximum value."
18+
aggregate,min,ANY,"Returns the minimum value."
19+
aggregate,sum,ANY,"Returns the sum of values."
20+
aggregate,avg,FLOAT64,"Returns the average of values."
21+
scalar,acos,FLOAT64,"Returns the arccosine of a number."
22+
scalar,asin,FLOAT64,"Returns the arcsine of a number."
23+
scalar,atan,FLOAT64,"Returns the arctangent of a number."
24+
scalar,atan2,FLOAT64,"Returns the arctangent of two numbers."
25+
scalar,cos,FLOAT64,"Returns the cosine of a number."
26+
scalar,cosh,FLOAT64,"Returns the hyperbolic cosine of a number."
27+
scalar,sin,FLOAT64,"Returns the sine of a number."
28+
scalar,sinh,FLOAT64,"Returns the hyperbolic sine of a number."
29+
scalar,tan,FLOAT64,"Returns the tangent of a number."
30+
scalar,tanh,FLOAT64,"Returns the hyperbolic tangent of a number."
31+
scalar,greatest,ANY,"Returns the greatest value in a list of expressions."
32+
scalar,least,ANY,"Returns the least value in a list of expressions."
33+
scalar,nullifzero,FLOAT64,"Returns NULL if the input is zero."
34+
scalar,zeroifnull,FLOAT64,"Returns zero if the input is NULL."
35+
scalar,format,STRING,"Formats values into a string."
36+
scalar,lpad,STRING,"Pads a string on the left to a certain length."
37+
scalar,rpad,STRING,"Pads a string on the right to a certain length."
38+
scalar,left,STRING,"Returns a substring from the beginning of a string."
39+
scalar,right,STRING,"Returns a substring from the end of a string."
40+
scalar,starts_with,BOOL,"Returns TRUE if the string starts with the specified prefix."
41+
scalar,ends_with,BOOL,"Returns TRUE if the string ends with the specified suffix."
42+
scalar,array_length,INT64,"Returns the length of an array."
43+
scalar,array_reverse,ARRAY,"Reverses the elements in an array."
44+
scalar,array_concat,ARRAY,"Concatenates multiple arrays into one."
45+
scalar,array_to_string,STRING,"Converts an array to a single string."
46+
scalar,generate_array,ARRAY,"Generates an array of values in a range."
47+
scalar,generate_date_array,ARRAY,"Generates an array of dates in a range."
48+
scalar,parse_timestamp,TIMESTAMP,"Parses a timestamp from a string."
49+
scalar,string_to_array,ARRAY,"Splits a string into an array of substrings."
50+
scalar,safe_divide,FLOAT64,"Divides two numbers, returning NULL if the divisor is zero."
51+
scalar,safe_multiply,FLOAT64,"Multiplies two numbers, returning NULL if an overflow occurs."
52+
scalar,safe_add,FLOAT64,"Adds two numbers, returning NULL if an overflow occurs."
53+
scalar,safe_subtract,FLOAT64,"Subtracts two numbers, returning NULL if an overflow occurs."
54+
scalar,abs,FLOAT64,"Returns the absolute value of a number."
55+
scalar,ceil,INT64,"Rounds up to the nearest integer."
56+
scalar,floor,INT64,"Rounds down to the nearest integer."
57+
scalar,round,FLOAT64,"Rounds to the specified number of decimal places."
58+
scalar,trunc,FLOAT64,"Truncates to the specified number of decimal places."
59+
scalar,pow,FLOAT64,"Returns a number raised to a power."
60+
scalar,sqrt,FLOAT64,"Returns the square root of a number."
61+
scalar,log,FLOAT64,"Returns the natural logarithm of a number."
62+
scalar,log10,FLOAT64,"Returns the base-10 logarithm of a number."
63+
scalar,concat,STRING,"Concatenates two or more strings."
64+
scalar,lower,STRING,"Converts a string to lowercase."
65+
scalar,upper,STRING,"Converts a string to uppercase."
66+
scalar,trim,STRING,"Removes leading and trailing whitespace."
67+
scalar,ltrim,STRING,"Removes leading whitespace."
68+
scalar,rtrim,STRING,"Removes trailing whitespace."
69+
scalar,length,INT64,"Returns the length of a string."
70+
scalar,regexp_contains,BOOL,"Returns TRUE if the string contains a match for the regex."
71+
scalar,regexp_extract,STRING,"Extracts the first match of the regex from the string."
72+
scalar,regexp_replace,STRING,"Replaces all matches of the regex with a replacement string."
73+
scalar,substr,STRING,"Returns a substring."
74+
scalar,cast,ANY,"Converts a value to a different data type."
75+
scalar,safe_cast,ANY,"Converts a value to a different data type, returning NULL on error."
76+
scalar,current_date,DATE,"Returns the current date."
77+
scalar,date_add,DATE,"Adds a specified interval to a date."
78+
scalar,date_sub,DATE,"Subtracts a specified interval from a date."
79+
scalar,date_diff,INT64,"Returns the difference between two dates."
80+
scalar,date_trunc,DATE,"Truncates a date to a specified granularity."
81+
scalar,timestamp_add,TIMESTAMP,"Adds a specified interval to a timestamp."
82+
scalar,timestamp_sub,TIMESTAMP,"Subtracts a specified interval from a timestamp."
83+
scalar,timestamp_diff,INT64,"Returns the difference between two timestamps."
84+
scalar,timestamp_trunc,TIMESTAMP,"Truncates a timestamp to a specified granularity."
85+
scalar,timestamp_micros,TIMESTAMP,"Converts the number of microseconds since 1970-01-01 00:00:00 UTC to a TIMESTAMP.",
86+
scalar,timestamp_millis,TIMESTAMP,"Converts the number of milliseconds since 1970-01-01 00:00:00 UTC to a TIMESTAMP.",
87+
scalar,timestamp_seconds,TIMESTAMP,"Converts the number of seconds since 1970-01-01 00:00:00 UTC to a TIMESTAMP.",
88+
scalar,format_date,STRING,"Formats a date according to the specified format string."
89+
scalar,format_timestamp,STRING,"Formats a timestamp according to the specified format string."
90+
scalar,parse_date,DATE,"Parses a date from a string."
91+
window,ntile,INT64,"Divides rows into a specified number of buckets and assigns a bucket number."
92+
window,percent_rank,FLOAT64,"Calculates the percent rank of a value in a partition."
93+
window,cume_dist,FLOAT64,"Calculates the cumulative distribution of a value in a partition."
94+
window,nth_value,ANY,"Returns the nth value in a window partition."
95+
window,percentile_cont,FLOAT64,"Computes a continuous percentile of a value."
96+
window,percentile_disc,ANY,"Computes a discrete percentile of a value."
97+
window,row_number,INT64,"Returns the sequential row number."
98+
window,rank,INT64,"Returns the rank with gaps."
99+
window,dense_rank,INT64,"Returns the rank without gaps."
100+
window,lag,ANY,"Returns the value from a previous row."
101+
window,lead,ANY,"Returns the value from a subsequent row."
102+
window,first_value,ANY,"Returns the first value in the window frame."
103+
window,last_value,ANY,"Returns the last value in the window frame."

ibis-server/resources/function_list/canner.csv

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ aggregate,regr_intercept,double,"Returns linear regression intercept"
1313
aggregate,regr_slope,double,"Returns linear regression slope"
1414
aggregate,string_agg,varchar,"Concatenates strings with delimiter"
1515
aggregate,sum,numeric,"Returns sum of values"
16-
scalar,abs,double/decimal,"Returns absolute value of the argument"
16+
scalar,abs,double,"Returns absolute value of the argument"
1717
scalar,array_distinct,array,"Removes duplicate values from array"
1818
scalar,array_join,varchar,"Joins array elements with delimiter"
1919
scalar,array_sort,array,"Sorts array elements"
2020
scalar,cardinality,bigint,"Returns size of array or map"
2121
scalar,cbrt,double,"Returns cube root of the argument"
22-
scalar,ceil,double/decimal,"Rounds up to nearest integer"
22+
scalar,ceil,double,"Rounds up to nearest integer"
2323
scalar,concat,varchar,"Concatenates given strings"
2424
scalar,contains,boolean,"Checks if array contains element"
2525
scalar,current_date,date,"Returns current date"
@@ -28,7 +28,7 @@ scalar,date_sub,date,"Subtracts interval from date"
2828
scalar,date_trunc,timestamp,"Truncates timestamp to specified precision"
2929
scalar,element_at,any,"Returns element at specified position in array"
3030
scalar,filter,array,"Filters array using lambda"
31-
scalar,floor,double/decimal,"Rounds down to nearest integer"
31+
scalar,floor,double,"Rounds down to nearest integer"
3232
scalar,format_datetime,varchar,"Formats datetime according to format string"
3333
scalar,from_base64,varbinary,"Converts base64 to binary"
3434
scalar,from_hex,varbinary,"Converts hex string to binary"
@@ -53,7 +53,7 @@ scalar,regexp_extract,varchar,"Extracts substring using regex"
5353
scalar,regexp_like,boolean,"Tests if string matches regex"
5454
scalar,regexp_replace,varchar,"Replaces substring using regex"
5555
scalar,replace,varchar,"Replaces substring in string"
56-
scalar,round,double/decimal,"Rounds to nearest integer or decimal places"
56+
scalar,round,double,"Rounds to nearest integer or decimal places"
5757
scalar,sha256,varchar,"Computes SHA256 hash"
5858
scalar,split,array,"Splits string by delimiter into array"
5959
scalar,split_part,varchar,"Returns specific part from split string"

0 commit comments

Comments
 (0)