Presto FunctionsΒΆ

Here is a list of all scalar and aggregate Presto functions available in Velox. Function names link to function descriptions. Check out coverage maps for all and most used functions for broader context.

Scalar Functions

Aggregate Functions

Window Functions

abs()

find_first_index()

plus()

any_value()

cume_dist()

acos()

flatten()

poisson_cdf()

approx_distinct()

dense_rank()

all_keys_match()

floor()

pow()

approx_most_frequent()

first_value()

all_match()

format_datetime()

power()

approx_percentile()

lag()

any_keys_match()

from_base()

quarter()

approx_set()

last_value()

any_match()

from_base64()

radians()

arbitrary()

lead()

any_values_match()

from_base64url()

rand()

array_agg()

nth_value()

array_average()

from_big_endian_32()

random()

avg()

ntile()

array_constructor()

from_big_endian_64()

reduce()

bitwise_and_agg()

percent_rank()

array_distinct()

from_hex()

regexp_extract()

bitwise_or_agg()

rank()

array_duplicates()

from_ieee754_32()

regexp_extract_all()

bitwise_xor_agg()

row_number()

array_except()

from_ieee754_64()

regexp_like()

bool_and()

array_frequency()

from_iso8601_date()

regexp_replace()

bool_or()

array_has_duplicates()

from_unixtime()

remove_nulls()

checksum()

array_intersect()

from_utf8()

repeat()

corr()

array_join()

gamma_cdf()

replace()

count()

array_max()

greatest()

reverse()

count_if()

array_min()

gt()

round()

covar_pop()

array_normalize()

gte()

rpad()

covar_samp()

array_position()

hamming_distance()

rtrim()

entropy()

array_remove()

hmac_md5()

second()

every()

array_sort()

hmac_sha1()

sequence()

geometric_mean()

array_sort_desc()

hmac_sha256()

sha1()

histogram()

array_sum()

hmac_sha512()

sha256()

kurtosis()

array_union()

hour()

sha512()

map_agg()

arrays_overlap()

in

shuffle()

map_union()

asin()

infinity()

sign()

map_union_sum()

atan()

inverse_beta_cdf()

sin()

max()

atan2()

is_finite()

slice()

max_by()

beta_cdf()

is_infinite()

split()

max_data_size_for_stats()

between()

is_json_scalar()

split_part()

merge()

binomial_cdf()

is_nan()

split_to_map()

min()

bit_count()

is_null()

spooky_hash_v2_32()

min_by()

bitwise_and()

json_array_contains()

spooky_hash_v2_64()

multimap_agg()

bitwise_arithmetic_shift_right()

json_array_length()

sqrt()

reduce_agg()

bitwise_left_shift()

json_extract()

starts_with()

regr_avgx()

bitwise_logical_shift_right()

json_extract_scalar()

strpos()

regr_avgy()

bitwise_not()

json_format()

strrpos()

regr_count()

bitwise_or()

json_parse()

subscript()

regr_intercept()

bitwise_right_shift()

json_size()

substr()

regr_r2()

bitwise_right_shift_arithmetic()

laplace_cdf()

tan()

regr_slope()

bitwise_shift_left()

last_day_of_month()

tanh()

regr_sxx()

bitwise_xor()

least()

timezone_hour()

regr_sxy()

cardinality()

length()

timezone_minute()

regr_syy()

cauchy_cdf()

levenshtein_distance()

to_base()

set_agg()

cbrt()

like()

to_base64()

set_union()

ceil()

ln()

to_base64url()

skewness()

ceiling()

log10()

to_big_endian_32()

stddev()

chi_squared_cdf()

log2()

to_big_endian_64()

stddev_pop()

chr()

lower()

to_hex()

stddev_samp()

clamp()

lpad()

to_ieee754_32()

sum()

codepoint()

lt()

to_ieee754_64()

sum_data_size_for_stats()

combinations()

lte()

to_unixtime()

var_pop()

concat()

ltrim()

to_utf8()

var_samp()

contains()

map()

transform()

variance()

cos()

map_concat()

transform_keys()

cosh()

map_entries()

transform_values()

cosine_similarity()

map_filter()

trim()

crc32()

map_from_entries()

trim_array()

current_date()

map_keys()

truncate()

date()

map_normalize()

typeof()

date_add()

map_subset()

upper()

date_diff()

map_top_n()

url_decode()

date_format()

map_values()

url_encode()

date_parse()

map_zip_with()

url_extract_fragment()

date_trunc()

md5()

url_extract_host()

day()

millisecond()

url_extract_parameter()

day_of_month()

minus()

url_extract_path()

day_of_week()

minute()

url_extract_port()

day_of_year()

mod()

url_extract_protocol()

degrees()

month()

url_extract_query()

distinct_from()

multimap_from_entries()

week()

divide()

multiply()

week_of_year()

dow()

nan()

weibull_cdf()

doy()

negate()

width_bucket()

e()

neq()

wilson_interval_lower()

element_at()

ngrams()

wilson_interval_upper()

empty_approx_set()

no_keys_match()

xxhash64()

ends_with()

no_values_match()

year()

eq()

none_match()

year_of_week()

exp()

normal_cdf()

yow()

f_cdf()

not

zip()

filter()

parse_datetime()

zip_with()

find_first()

pi()