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

ip_subnet_range()

random()

st_numpoints()

approx_distinct()

cume_dist()

acos()

date_parse()

is_finite()

reduce()

st_overlaps()

approx_most_frequent()

dense_rank()

all_match()

date_trunc()

is_infinite()

regexp_extract()

st_point()

approx_percentile()

first_value()

any_keys_match()

day()

is_json_scalar()

regexp_extract_all()

st_pointn()

approx_set()

lag()

any_match()

day_of_month()

is_nan()

regexp_like()

st_points()

arbitrary()

last_value()

any_values_match()

day_of_week()

is_private_ip()

regexp_replace()

st_polygon()

array_agg()

lead()

array_average()

day_of_year()

is_subnet_of()

regexp_split()

st_relate()

avg()

nth_value()

array_cum_sum()

degrees()

jaccard_index

regress

st_startpoint()

bitwise_and_agg()

ntile()

array_distinct()

dot_product()

json_array_contains()

reidentification_potential

st_symdifference()

bitwise_or_agg()

percent_rank()

array_duplicates()

dow()

json_array_get()

remove_nulls()

st_touches()

bool_and()

rank()

array_except()

doy()

json_array_length()

render

st_union()

bool_or()

row_number()

array_frequency()

e()

json_extract()

repeat()

st_within()

checksum()

array_has_duplicates()

element_at()

json_extract_scalar()

replace()

st_x()

classification_fall_out()

array_intersect()

empty_approx_set()

json_format()

replace_first()

st_xmax()

classification_miss_rate()

array_join()

ends_with()

json_parse()

reverse()

st_xmin()

classification_precision()

array_least_frequent

enum_key()

json_size()

rgb

st_y()

classification_recall()

array_max()

exp()

key_sampling_percent

round()

st_ymax()

classification_thresholds()

array_max_by()

expand_envelope()

l2_squared

rpad()

st_ymin()

convex_hull_agg

array_min()

f_cdf()

laplace_cdf()

rtrim()

starts_with()

corr()

array_min_by()

features

last_day_of_month()

scale_qdigest()

strpos()

count()

array_normalize()

filter()

least()

second()

strrpos()

count_if()

array_position()

filter()

length()

secure_rand()

substr()

covar_pop()

array_remove()

find_first()

levenshtein_distance()

secure_random()

tan()

covar_samp()

array_sort()

find_first_index()

line_interpolate_point()

sequence()

tanh()

differential_entropy

array_sort_desc()

flatten()

line_locate_point()

sha1()

tdigest_agg

entropy()

array_split_into_chunks

flatten_geometry_collections()

ln()

sha256()

timezone_hour()

evaluate_classifier_predictions

array_sum()

floor()

localtime()

sha512()

timezone_minute()

every()

array_top_n()

fnv1_32

localtimestamp

shuffle()

to_base()

geometric_mean()

array_union()

fnv1_64

log10()

sign()

to_base32

geometry_union_agg

arrays_overlap()

fnv1a_32

log2()

simplify_geometry()

to_base64()

histogram()

asin()

fnv1a_64

longest_common_prefix()

sin()

to_base64url()

khyperloglog_agg

atan()

format_datetime()

lower()

sketch_kll_quantile

to_big_endian_32()

kurtosis()

atan2()

from_base()

lpad()

sketch_kll_rank

to_big_endian_64()

learn_classifier

bar

from_base32()

ltrim()

slice()

to_geometry

learn_libsvm_classifier

beta_cdf()

from_base64()

map()

spatial_partitions

to_hex()

learn_libsvm_regressor

bing_tile()

from_base64url()

map_concat()

split()

to_ieee754_32()

learn_regressor

bing_tile_at()

from_big_endian_32()

map_entries()

split_part()

to_ieee754_64()

make_set_digest

bing_tile_children()

from_big_endian_64()

map_filter()

split_to_map()

to_iso8601()

map_agg()

bing_tile_coordinates()

from_hex()

map_from_entries()

split_to_multimap()

to_milliseconds()

map_union()

bing_tile_parent()

from_ieee754_32()

map_keys()

spooky_hash_v2_32()

to_spherical_geography

map_union_sum()

bing_tile_polygon()

from_ieee754_64()

map_keys_by_top_n_values()

spooky_hash_v2_64()

to_unixtime()

max()

bing_tile_quadkey()

from_iso8601_date()

map_normalize()

sqrt()

to_utf8()

max_by()

bing_tile_zoom_level()

from_iso8601_timestamp()

map_remove_null_values()

st_area()

trail()

merge()

bing_tiles_around()

from_unixtime()

map_subset()

st_asbinary()

transform()

merge_set_digest

binomial_cdf()

from_utf8()

map_top_n()

st_astext()

transform_keys()

min()

bit_count()

gamma_cdf()

map_top_n_keys()

st_boundary()

transform_values()

min_by()

bit_length()

geometry_as_geojson()

map_top_n_keys_by_value

st_buffer()

trim()

multimap_agg()

bitwise_and()

geometry_from_geojson()

map_top_n_values()

st_centroid()

trim_array()

noisy_avg_gaussian()

bitwise_arithmetic_shift_right()

geometry_invalid_reason()

map_values()

st_contains()

truncate()

noisy_count_gaussian()

bitwise_left_shift()

geometry_nearest_points()

map_zip_with()

st_convexhull()

typeof()

noisy_count_if_gaussian()

bitwise_logical_shift_right()

geometry_to_bing_tiles()

md5()

st_coorddim()

uniqueness_distribution

noisy_sum_gaussian()

bitwise_not()

geometry_to_dissolved_bing_tiles()

merge_hll()

st_crosses()

upper()

numeric_histogram()

bitwise_or()

geometry_union()

merge_khll

st_difference()

url_decode()

qdigest_agg()

bitwise_right_shift()

google_polyline_decode

millisecond()

st_dimension()

url_encode()

reduce_agg()

bitwise_right_shift_arithmetic()

google_polyline_encode

minute()

st_disjoint()

url_extract_fragment()

regr_avgx()

bitwise_shift_left()

great_circle_distance()

mod()

st_distance()

url_extract_host()

regr_avgy()

bitwise_xor()

greatest()

month()

st_endpoint()

url_extract_parameter()

regr_count()

cardinality()

hamming_distance()

multimap_from_entries()

st_envelope()

url_extract_path()

regr_intercept()

cauchy_cdf()

hash_counts

murmur3_x64_128()

st_envelopeaspts()

url_extract_port()

regr_r2()

cbrt()

hmac_md5()

myanmar_font_encoding

st_equals()

url_extract_protocol()

regr_slope()

ceil()

hmac_sha1()

myanmar_normalize_unicode

st_exteriorring()

url_extract_query()

regr_sxx()

ceiling()

hmac_sha256()

nan()

st_geometries()

uuid()

regr_sxy()

chi_squared_cdf()

hmac_sha512()

ngrams()

st_geometryfromtext()

value_at_quantile()

regr_syy()

chr()

hour()

no_keys_match()

st_geometryn()

values_at_quantiles()

reservoir_sample

classify

infinity()

no_values_match()

st_geometrytype()

week()

set_agg()

codepoint()

intersection_cardinality

none_match()

st_geomfrombinary()

week_of_year()

set_union()

color

inverse_beta_cdf()

normal_cdf()

st_interiorringn()

weibull_cdf()

sketch_kll

combinations()

inverse_binomial_cdf()

normalize()

st_interiorrings()

width_bucket()

sketch_kll_with_k

concat()

inverse_cauchy_cdf()

now

st_intersection()

wilson_interval_lower()

skewness()

contains()

inverse_chi_squared_cdf()

parse_datetime()

st_intersects()

wilson_interval_upper()

spatial_partitioning

cos()

inverse_f_cdf()

parse_duration()

st_isclosed()

word_stem()

stddev()

cosh()

inverse_gamma_cdf()

parse_presto_data_size()

st_isempty()

xxhash64()

stddev_pop()

cosine_similarity()

inverse_laplace_cdf()

pi()

st_isring()

year()

stddev_samp()

crc32()

inverse_normal_cdf()

pinot_binary_decimal_to_double

st_issimple()

year_of_week()

sum()

current_date()

inverse_poisson_cdf()

poisson_cdf()

st_isvalid()

yow()

tdigest_agg()

current_time

inverse_weibull_cdf()

pow()

st_length()

zip()

var_pop()

current_timestamp

ip_prefix()

power()

st_linefromtext()

zip_with()

var_samp()

current_timezone

ip_prefix_collapse()

quantile_at_value()

st_linestring()

variance()

date()

ip_prefix_subnets()

quarter()

st_multipoint()

date_add()

ip_subnet_max()

radians()

st_numgeometries()

date_diff()

ip_subnet_min()

rand()

st_numinteriorring()