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()

hash_counts()

s2_cell_parent()

any_value()

cume_dist()

acos()

hmac_md5()

s2_cell_to_token()

approx_distinct()

dense_rank()

all_keys_match()

hmac_sha1()

s2_cells()

approx_most_frequent()

first_value()

all_match()

hmac_sha256()

scale_qdigest()

approx_percentile()

lag()

any_keys_match()

hmac_sha512()

scale_tdigest()

approx_set()

last_value()

any_match()

hour()

second()

approx_winsorized_mean()

lead()

any_values_match()

infinity()

secure_rand()

arbitrary()

nth_value()

array_average()

intersection_cardinality()

secure_random()

array_agg()

ntile()

array_constructor()

inverse_beta_cdf()

sequence()

avg()

percent_rank()

array_cum_sum()

inverse_binomial_cdf()

sha1()

bitwise_and_agg()

rank()

array_distinct()

inverse_cauchy_cdf()

sha256()

bitwise_or_agg()

row_number()

array_duplicates()

inverse_chi_squared_cdf()

sha512()

bitwise_xor_agg()

array_except()

inverse_f_cdf()

shuffle()

bool_and()

array_frequency()

inverse_gamma_cdf()

sign()

bool_or()

array_has_duplicates()

inverse_laplace_cdf()

simplify_geometry()

checksum()

array_intersect()

inverse_normal_cdf()

sin()

classification_fall_out()

array_join()

inverse_poisson_cdf()

slice()

classification_miss_rate()

array_max()

inverse_t_cdf()

split()

classification_precision()

array_max_by()

inverse_weibull_cdf()

split_part()

classification_recall()

array_min()

ip_prefix()

split_to_map()

classification_thresholds()

array_min_by()

ip_prefix_collapse()

split_to_multimap()

convex_hull_agg()

array_normalize()

ip_prefix_masklen()

spooky_hash_v2_32()

corr()

array_position()

ip_prefix_subnets()

spooky_hash_v2_64()

count()

array_remove()

ip_subnet_max()

sqrt()

count_if()

array_sort()

ip_subnet_min()

st_area()

covar_pop()

array_sort_desc()

ip_subnet_range()

st_asbinary()

covar_samp()

array_split_into_chunks()

ip_version()

st_astext()

entropy()

array_subset()

is_finite()

st_boundary()

every()

array_sum()

is_infinite()

st_buffer()

geometric_mean()

array_sum_propagate_element_null()

is_json_scalar()

st_centroid()

geometry_union_agg()

array_top_n()

is_nan()

st_contains()

histogram()

array_union()

is_null()

st_convexhull()

khyperloglog_agg()

arrays_overlap()

is_private_ip()

st_coorddim()

kurtosis()

asin()

is_subnet_of()

st_crosses()

make_set_digest()

at_timezone()

jaccard_index()

st_difference()

map_agg()

atan()

jarowinkler_similarity()

st_dimension()

map_union()

atan2()

json_array_contains()

st_disjoint()

map_union_sum()

beta_cdf()

json_array_get()

st_distance()

max()

between()

json_array_length()

st_endpoint()

max_by()

bing_tile()

json_extract()

st_envelope()

max_data_size_for_stats()

bing_tile_at()

json_extract_scalar()

st_envelopeaspts()

merge()

bing_tile_children()

json_format()

st_equals()

merge_set_digest()

bing_tile_coordinates()

json_parse()

st_exteriorring()

min()

bing_tile_parent()

json_size()

st_geometries()

min_by()

bing_tile_polygon()

key_sampling_percent()

st_geometryfromtext()

multimap_agg()

bing_tile_quadkey()

l2_norm()

st_geometryn()

noisy_approx_distinct_sfm()

bing_tile_zoom_level()

laplace_cdf()

st_geometrytype()

noisy_approx_set_sfm()

bing_tiles_around()

last_day_of_month()

st_geomfrombinary()

noisy_approx_set_sfm_from_index_and_zeros()

binomial_cdf()

least()

st_interiorringn()

noisy_avg_gaussian()

bit_count()

length()

st_interiorrings()

noisy_count_gaussian()

bit_length()

levenshtein_distance()

st_intersection()

noisy_count_if_gaussian()

bitwise_and()

like()

st_intersects()

noisy_sum_gaussian()

bitwise_arithmetic_shift_right()

line_interpolate_point()

st_isclosed()

numeric_histogram()

bitwise_left_shift()

line_locate_point()

st_isempty()

qdigest_agg()

bitwise_logical_shift_right()

ln()

st_isring()

reduce_agg()

bitwise_not()

localtime()

st_issimple()

regr_avgx()

bitwise_or()

localtimestamp()

st_isvalid()

regr_avgy()

bitwise_right_shift()

log10()

st_length()

regr_count()

bitwise_right_shift_arithmetic()

log2()

st_linefromtext()

regr_intercept()

bitwise_shift_left()

longest_common_prefix()

st_linestring()

regr_r2()

bitwise_xor()

lower()

st_multipoint()

regr_slope()

cardinality()

lpad()

st_numgeometries()

regr_sxx()

cauchy_cdf()

lt()

st_numinteriorring()

regr_sxy()

cbrt()

lte()

st_numpoints()

regr_syy()

ceil()

ltrim()

st_overlaps()

reservoir_sample()

ceiling()

map()

st_point()

set_agg()

chi_squared_cdf()

map_append()

st_pointn()

set_union()

chr()

map_concat()

st_points()

skewness()

clamp()

map_entries()

st_polygon()

stddev()

codepoint()

map_except()

st_relate()

stddev_pop()

combinations()

map_filter()

st_startpoint()

stddev_samp()

combine_hash_internal()

map_from_entries()

st_symdifference()

sum()

concat()

map_intersect()

st_touches()

sum_data_size_for_stats()

construct_tdigest()

map_key_exists()

st_union()

tdigest_agg()

contains()

map_keys()

st_within()

var_pop()

cos()

map_keys_by_top_n_values()

st_x()

var_samp()

cosh()

map_keys_overlap()

st_xmax()

variance()

cosine_similarity()

map_normalize()

st_xmin()

vector_sum()

crc32()

map_remove_null_values()

st_y()

current_date()

map_subset()

st_ymax()

current_time()

map_top_n()

st_ymin()

current_timestamp()

map_top_n_keys()

starts_with()

current_timezone()

map_top_n_values()

strpos()

date()

map_trim_values()

strrpos()

date_add()

map_update()

subscript()

date_diff()

map_values()

substr()

date_format()

map_values_in_range()

substring()

date_parse()

map_zip_with()

t_cdf()

date_trunc()

md5()

tan()

day()

merge_hll()

tanh()

day_of_month()

merge_khll()

timezone_hour()

day_of_week()

merge_sfm()

timezone_minute()

day_of_year()

merge_tdigest()

to_base()

degrees()

millisecond()

to_base64()

destructure_tdigest()

minus()

to_base64url()

distinct_from()

minute()

to_big_endian_32()

divide()

mod()

to_big_endian_64()

dot_product()

month()

to_geometry()

dow()

multimap_from_entries()

to_hex()

doy()

multiply()

to_ieee754_32()

e()

murmur3_x64_128()

to_ieee754_64()

element_at()

nan()

to_iso8601()

empty_approx_set()

negate()

to_milliseconds()

ends_with()

neq()

to_spherical_geography()

enum_key()

ngrams()

to_unixtime()

eq()

no_keys_match()

to_utf8()

exp()

no_values_match()

trail()

expand_envelope()

noisy_empty_approx_set_sfm()

transform()

f_cdf()

none_match()

transform_keys()

fail()

normal_cdf()

transform_values()

filter()

normalize()

transform_with_index()

find_first()

now()

trim()

find_first_index()

parse_datetime()

trim_array()

flatten()

parse_duration()

trimmed_mean()

flatten_geometry_collections()

parse_presto_data_size()

truncate()

floor()

pi()

typeof()

fnv1_32()

plus()

uniqueness_distribution()

fnv1_64()

pmod()

upper()

fnv1a_32()

poisson_cdf()

url_decode()

fnv1a_64()

pow()

url_encode()

format_datetime()

power()

url_extract_fragment()

from_base()

quantile_at_value()

url_extract_host()

from_base32()

quantiles_at_values()

url_extract_parameter()

from_base64()

quarter()

url_extract_path()

from_base64url()

radians()

url_extract_port()

from_big_endian_32()

rand()

url_extract_protocol()

from_big_endian_64()

random()

url_extract_query()

from_hex()

reduce()

uuid()

from_ieee754_32()

regexp_extract()

value_at_quantile()

from_ieee754_64()

regexp_extract_all()

values_at_quantiles()

from_iso8601_date()

regexp_like()

week()

from_iso8601_timestamp()

regexp_replace()

week_of_year()

from_unixtime()

regexp_split()

weibull_cdf()

from_utf8()

reidentification_potential()

width_bucket()

gamma_cdf()

remap_keys()

wilson_interval_lower()

geometry_as_geojson()

remove_nulls()

wilson_interval_upper()

geometry_from_geojson()

repeat()

winsorized_mean()

geometry_invalid_reason()

replace()

word_stem()

geometry_nearest_points()

replace_first()

xxhash64()

geometry_to_bing_tiles()

reverse()

xxhash64_internal()

geometry_to_dissolved_bing_tiles()

round()

year()

geometry_union()

rpad()

year_of_week()

great_circle_distance()

rtrim()

yow()

greatest()

s2_cell_area_sq_km()

zip()

gt()

s2_cell_contains()

zip_with()

gte()

s2_cell_from_token()

hamming_distance()

s2_cell_level()