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

$internal$json_string_to_array_cast()

gt()

sequence()

any_value()

cume_dist()

$internal$json_string_to_map_cast()

gte()

sha1()

approx_distinct()

dense_rank()

$internal$json_string_to_row_cast()

hamming_distance()

sha256()

approx_most_frequent()

first_value()

$internal$split_to_map()

hmac_md5()

sha512()

approx_percentile()

lag()

abs()

hmac_sha1()

shuffle()

approx_set()

last_value()

acos()

hmac_sha256()

sign()

arbitrary()

lead()

all_keys_match()

hmac_sha512()

simplify_geometry()

array_agg()

nth_value()

all_match()

hour()

sin()

avg()

ntile()

any_keys_match()

in

slice()

bitwise_and_agg()

percent_rank()

any_match()

infinity()

split()

bitwise_or_agg()

rank()

any_values_match()

inverse_beta_cdf()

split_part()

bitwise_xor_agg()

row_number()

array_average()

inverse_binomial_cdf()

split_to_map()

bool_and()

array_constructor()

inverse_cauchy_cdf()

split_to_multimap()

bool_or()

array_cum_sum()

inverse_chi_squared_cdf()

spooky_hash_v2_32()

checksum()

array_distinct()

inverse_f_cdf()

spooky_hash_v2_64()

classification_fall_out()

array_duplicates()

inverse_gamma_cdf()

sqrt()

classification_miss_rate()

array_except()

inverse_laplace_cdf()

st_area()

classification_precision()

array_frequency()

inverse_normal_cdf()

st_asbinary()

classification_recall()

array_has_duplicates()

inverse_poisson_cdf()

st_astext()

classification_thresholds()

array_intersect()

inverse_weibull_cdf()

st_boundary()

corr()

array_join()

ip_prefix()

st_buffer()

count()

array_max()

ip_prefix_collapse()

st_centroid()

count_if()

array_max_by()

ip_prefix_subnets()

st_contains()

covar_pop()

array_min()

ip_subnet_max()

st_convexhull()

covar_samp()

array_min_by()

ip_subnet_min()

st_coorddim()

entropy()

array_normalize()

ip_subnet_range()

st_crosses()

every()

array_position()

is_finite()

st_difference()

geometric_mean()

array_remove()

is_infinite()

st_dimension()

histogram()

array_sort()

is_json_scalar()

st_disjoint()

kurtosis()

array_sort_desc()

is_nan()

st_distance()

map_agg()

array_sum()

is_null()

st_endpoint()

map_union()

array_sum_propagate_element_null()

is_private_ip()

st_envelope()

map_union_sum()

array_top_n()

is_subnet_of()

st_envelopeaspts()

max()

array_union()

json_array_contains()

st_equals()

max_by()

arrays_overlap()

json_array_get()

st_exteriorring()

max_data_size_for_stats()

asin()

json_array_length()

st_geometries()

merge()

at_timezone()

json_extract()

st_geometryfromtext()

min()

atan()

json_extract_scalar()

st_geometryn()

min_by()

atan2()

json_format()

st_geometrytype()

multimap_agg()

beta_cdf()

json_parse()

st_geomfrombinary()

noisy_approx_distinct_sfm()

between()

json_size()

st_interiorringn()

noisy_approx_set_sfm()

bing_tile()

laplace_cdf()

st_interiorrings()

noisy_approx_set_sfm_from_index_and_zeros()

bing_tile_at()

last_day_of_month()

st_intersection()

noisy_avg_gaussian()

bing_tile_children()

least()

st_intersects()

noisy_count_gaussian()

bing_tile_coordinates()

length()

st_isclosed()

noisy_count_if_gaussian()

bing_tile_parent()

levenshtein_distance()

st_isempty()

noisy_sum_gaussian()

bing_tile_quadkey()

like()

st_isring()

numeric_histogram()

bing_tile_zoom_level()

line_interpolate_point()

st_issimple()

qdigest_agg()

bing_tiles_around()

line_locate_point()

st_isvalid()

reduce_agg()

binomial_cdf()

ln()

st_length()

regr_avgx()

bit_count()

log10()

st_numgeometries()

regr_avgy()

bitwise_and()

log2()

st_numinteriorring()

regr_count()

bitwise_arithmetic_shift_right()

lower()

st_numpoints()

regr_intercept()

bitwise_left_shift()

lpad()

st_overlaps()

regr_r2()

bitwise_logical_shift_right()

lt()

st_point()

regr_slope()

bitwise_not()

lte()

st_pointn()

regr_sxx()

bitwise_or()

ltrim()

st_points()

regr_sxy()

bitwise_right_shift()

map()

st_polygon()

regr_syy()

bitwise_right_shift_arithmetic()

map_concat()

st_relate()

set_agg()

bitwise_shift_left()

map_entries()

st_startpoint()

set_union()

bitwise_xor()

map_filter()

st_symdifference()

skewness()

cardinality()

map_from_entries()

st_touches()

stddev()

cauchy_cdf()

map_key_exists()

st_union()

stddev_pop()

cbrt()

map_keys()

st_within()

stddev_samp()

ceil()

map_keys_by_top_n_values()

st_x()

sum()

ceiling()

map_normalize()

st_xmax()

sum_data_size_for_stats()

chi_squared_cdf()

map_remove_null_values()

st_xmin()

tdigest_agg()

chr()

map_subset()

st_y()

var_pop()

clamp()

map_top_n()

st_ymax()

var_samp()

codepoint()

map_top_n_keys()

st_ymin()

variance()

combinations()

map_top_n_values()

starts_with()

combine_hash_internal()

map_values()

strpos()

concat()

map_zip_with()

strrpos()

construct_tdigest()

md5()

subscript()

contains()

merge_sfm()

substr()

cos()

merge_tdigest()

substring()

cosh()

millisecond()

tan()

cosine_similarity()

minus()

tanh()

crc32()

minute()

timezone_hour()

current_date()

mod()

timezone_minute()

date()

month()

to_base()

date_add()

multimap_from_entries()

to_base64()

date_diff()

multiply()

to_base64url()

date_format()

murmur3_x64_128()

to_big_endian_32()

date_parse()

nan()

to_big_endian_64()

date_trunc()

negate()

to_hex()

day()

neq()

to_ieee754_32()

day_of_month()

ngrams()

to_ieee754_64()

day_of_week()

no_keys_match()

to_iso8601()

day_of_year()

no_values_match()

to_milliseconds()

degrees()

noisy_empty_approx_set_sfm()

to_unixtime()

destructure_tdigest()

none_match()

to_utf8()

distinct_from()

normal_cdf()

trail()

divide()

normalize()

transform()

dot_product()

not

transform_keys()

dow()

parse_datetime()

transform_values()

doy()

parse_duration()

trim()

e()

parse_presto_data_size()

trim_array()

element_at()

pi()

trimmed_mean()

empty_approx_set()

plus()

truncate()

ends_with()

poisson_cdf()

typeof()

eq()

pow()

upper()

exp()

power()

url_decode()

f_cdf()

quantile_at_value()

url_encode()

fail()

quantiles_at_values()

url_extract_fragment()

filter()

quarter()

url_extract_host()

find_first()

radians()

url_extract_parameter()

find_first_index()

rand()

url_extract_path()

flatten()

random()

url_extract_port()

flatten_geometry_collections()

reduce()

url_extract_protocol()

floor()

regexp_extract()

url_extract_query()

format_datetime()

regexp_extract_all()

uuid()

from_base()

regexp_like()

value_at_quantile()

from_base64()

regexp_replace()

values_at_quantiles()

from_base64url()

regexp_split()

week()

from_big_endian_32()

remove_nulls()

week_of_year()

from_big_endian_64()

repeat()

weibull_cdf()

from_hex()

replace()

width_bucket()

from_ieee754_32()

replace_first()

wilson_interval_lower()

from_ieee754_64()

reverse()

wilson_interval_upper()

from_iso8601_date()

round()

word_stem()

from_iso8601_timestamp()

rpad()

xxhash64()

from_unixtime()

rtrim()

xxhash64_internal()

from_utf8()

scale_qdigest()

year()

gamma_cdf()

scale_tdigest()

year_of_week()

geometry_invalid_reason()

second()

yow()

geometry_nearest_points()

secure_rand()

zip()

greatest()

secure_random()

zip_with()