Function CoverageΒΆ

Here is a list of all scalar, aggregate, and window functions from Presto, with functions that are available in Velox highlighted.

Scalar Functions

Aggregate Functions

Window Functions

abs()

date_diff()

ip_subnet_range

random()

st_numgeometries

approx_distinct()

cume_dist()

acos()

date_format()

is_finite()

reduce()

st_numinteriorring

approx_most_frequent()

dense_rank()

all_match()

date_parse()

is_infinite()

regexp_extract()

st_numpoints

approx_percentile()

first_value()

any_keys_match()

date_trunc()

is_json_scalar()

regexp_extract_all()

st_overlaps

approx_set()

lag()

any_match()

day()

is_nan()

regexp_like()

st_point

arbitrary()

last_value()

any_values_match()

day_of_month()

is_private_ip

regexp_replace()

st_pointn

array_agg()

lead()

array_average()

day_of_week()

is_subnet_of

regexp_split()

st_points

avg()

nth_value()

array_cum_sum()

day_of_year()

jaccard_index

regress

st_polygon

bitwise_and_agg()

ntile()

array_distinct()

degrees()

json_array_contains()

reidentification_potential

st_relate

bitwise_or_agg()

percent_rank()

array_duplicates()

dow()

json_array_get()

remove_nulls()

st_startpoint

bool_and()

rank()

array_except()

doy()

json_array_length()

render

st_symdifference

bool_or()

row_number()

array_frequency()

e()

json_extract()

repeat()

st_touches

checksum()

array_has_duplicates()

element_at()

json_extract_scalar()

replace()

st_union

classification_fall_out()

array_intersect()

empty_approx_set()

json_format()

replace_first()

st_within

classification_miss_rate()

array_join()

ends_with()

json_parse()

reverse()

st_x

classification_precision()

array_least_frequent

enum_key

json_size()

rgb

st_xmax

classification_recall()

array_max()

exp()

key_sampling_percent

round()

st_xmin

classification_thresholds()

array_max_by

expand_envelope

laplace_cdf()

rpad()

st_y

convex_hull_agg

array_min()

f_cdf()

last_day_of_month()

rtrim()

st_ymax

corr()

array_min_by

features

least()

scale_qdigest

st_ymin

count()

array_normalize()

filter()

length()

second()

starts_with()

count_if()

array_position()

filter()

levenshtein_distance()

secure_rand()

strpos()

covar_pop()

array_remove()

find_first()

line_interpolate_point

secure_random()

strrpos()

covar_samp()

array_sort()

find_first_index()

line_locate_point

sequence()

substr()

differential_entropy

array_sort_desc()

flatten()

ln()

sha1()

tan()

entropy()

array_split_into_chunks

flatten_geometry_collections

localtime

sha256()

tanh()

evaluate_classifier_predictions

array_sum()

floor()

localtimestamp

sha512()

tdigest_agg

every()

array_top_n

fnv1_32

log10()

shuffle()

timezone_hour()

geometric_mean()

array_union()

fnv1_64

log2()

sign()

timezone_minute()

geometry_union_agg

arrays_overlap()

fnv1a_32

lower()

simplify_geometry

to_base()

histogram()

asin()

fnv1a_64

lpad()

sin()

to_base32

khyperloglog_agg

atan()

format_datetime()

ltrim()

sketch_kll_quantile

to_base64()

kurtosis()

atan2()

from_base()

map()

sketch_kll_rank

to_base64url()

learn_classifier

bar

from_base32

map_concat()

slice()

to_big_endian_32()

learn_libsvm_classifier

beta_cdf()

from_base64()

map_entries()

spatial_partitions

to_big_endian_64()

learn_libsvm_regressor

bing_tile

from_base64url()

map_filter()

split()

to_geometry

learn_regressor

bing_tile_at

from_big_endian_32()

map_from_entries()

split_part()

to_hex()

make_set_digest

bing_tile_children

from_big_endian_64()

map_keys()

split_to_map()

to_ieee754_32()

map_agg()

bing_tile_coordinates

from_hex()

map_keys_by_top_n_values

split_to_multimap

to_ieee754_64()

map_union()

bing_tile_parent

from_ieee754_32()

map_normalize()

spooky_hash_v2_32()

to_iso8601()

map_union_sum()

bing_tile_polygon

from_ieee754_64()

map_remove_null_values()

spooky_hash_v2_64()

to_milliseconds()

max()

bing_tile_quadkey

from_iso8601_date()

map_subset()

sqrt()

to_spherical_geography

max_by()

bing_tile_zoom_level

from_iso8601_timestamp()

map_top_n()

st_area

to_unixtime()

merge()

bing_tiles_around

from_unixtime()

map_top_n_keys()

st_asbinary

to_utf8()

merge_set_digest

binomial_cdf()

from_utf8()

map_top_n_keys_by_value

st_astext

trail()

min()

bit_count()

gamma_cdf()

map_top_n_values

st_boundary

transform()

min_by()

bitwise_and()

geometry_as_geojson

map_values()

st_buffer

transform_keys()

multimap_agg()

bitwise_arithmetic_shift_right()

geometry_from_geojson

map_zip_with()

st_centroid

transform_values()

noisy_avg_gaussian

bitwise_left_shift()

geometry_invalid_reason

md5()

st_contains

trim()

noisy_count_gaussian

bitwise_logical_shift_right()

geometry_nearest_points

merge_hll

st_convexhull

trim_array()

noisy_count_if_gaussian

bitwise_not()

geometry_to_bing_tiles

merge_khll

st_coorddim

truncate()

noisy_sum_gaussian

bitwise_or()

geometry_to_dissolved_bing_tiles

millisecond()

st_crosses

typeof()

numeric_histogram

bitwise_right_shift()

geometry_union

minute()

st_difference

uniqueness_distribution

qdigest_agg

bitwise_right_shift_arithmetic()

great_circle_distance

mod()

st_dimension

upper()

reduce_agg()

bitwise_shift_left()

greatest()

month()

st_disjoint

url_decode()

regr_avgx()

bitwise_xor()

hamming_distance()

multimap_from_entries()

st_distance

url_encode()

regr_avgy()

cardinality()

hash_counts

murmur3_x64_128

st_endpoint

url_extract_fragment()

regr_count()

cauchy_cdf()

hmac_md5()

myanmar_font_encoding

st_envelope

url_extract_host()

regr_intercept()

cbrt()

hmac_sha1()

myanmar_normalize_unicode

st_envelopeaspts

url_extract_parameter()

regr_r2()

ceil()

hmac_sha256()

nan()

st_equals

url_extract_path()

regr_slope()

ceiling()

hmac_sha512()

ngrams()

st_exteriorring

url_extract_port()

regr_sxx()

chi_squared_cdf()

hour()

no_keys_match()

st_geometries

url_extract_protocol()

regr_sxy()

chr()

infinity()

no_values_match()

st_geometryfromtext

url_extract_query()

regr_syy()

classify

intersection_cardinality

none_match()

st_geometryn

uuid()

reservoir_sample

codepoint()

inverse_beta_cdf()

normal_cdf()

st_geometrytype

value_at_quantile

set_agg()

color

inverse_binomial_cdf

normalize()

st_geomfrombinary

values_at_quantiles

set_union()

combinations()

inverse_cauchy_cdf()

now

st_interiorringn

week()

sketch_kll

concat()

inverse_chi_squared_cdf

parse_datetime()

st_interiorrings

week_of_year()

sketch_kll_with_k

contains()

inverse_f_cdf

parse_duration

st_intersection

weibull_cdf()

skewness()

cos()

inverse_gamma_cdf

parse_presto_data_size

st_intersects

width_bucket()

spatial_partitioning

cosh()

inverse_laplace_cdf()

pi()

st_isclosed

wilson_interval_lower()

stddev()

cosine_similarity()

inverse_normal_cdf()

pinot_binary_decimal_to_double

st_isempty

wilson_interval_upper()

stddev_pop()

crc32()

inverse_poisson_cdf

poisson_cdf()

st_isring

word_stem()

stddev_samp()

current_date()

inverse_weibull_cdf()

pow()

st_issimple

xxhash64()

sum()

current_time

ip_prefix()

power()

st_isvalid

year()

tdigest_agg

current_timestamp

ip_prefix_collapse

quantile_at_value

st_length

year_of_week()

var_pop()

current_timezone

ip_prefix_subnets

quarter()

st_linefromtext

yow()

var_samp()

date()

ip_subnet_max

radians()

st_linestring

zip()

variance()

date_add()

ip_subnet_min

rand()

st_multipoint

zip_with()