OPAL Misc Functions

Miscellaneous functions are those that do not fit in the other categories.

Function

Description

asc

Specify the ordering as ascending when processing data.

coalesce

Return the first non-null argument or null if all are null.

desc

Specify the ordering as descending when processing data.

exponential_histogram_null

Creates a null value of type otelExponentialHistogram.

float64

Generate a float representation of the argument value.

frame

Specify the approximate relative time frame for a window context.

frame_exact

Specify the exact relative time frame for a window context.

frame_following

Specifies a cumulative time frame for a window context, where the frame is the current row through the end of the query frame.

frame_preceding

Specifies a cumulative time frame for a window context, where the frame is all the rows from the beginning of the current query

hash

Accepts a variable number of arguments of arbitrary types and returns a signed 64-bit hash of the values.

histogram_null

Creates a null value of type otelHistogram.

histogram_quantile

Compute quantiles on histogram objects.

if

Test if a condition is true or false.

if_null

Return the second argument if the first argument has the null value.

int64

Generate an integer representation of the argument value.

m_exponential_histogram

Select an OpenTelemetry exponential histogram metric for the align verb.

m_histogram

Select an OpenTelemetry explicit bucket histogram metric for the align verb.

m_tdigest

Select a metric of type tdigest for the align verb.

nullsfirst

Specify the ordering as nulls first when processing data.

nullslast

Specify the ordering as nulls last when processing data.

numeric_null

Returns a null value of type numeric.

on

on is a special function used to specify the join condition for some join verbs.

order_by

Specify the ordering when processing data.

parse_hex

Parses a string encoded hex number and returns an int64.

strlen

Compute the length of an input string.

tdigest

Convert a JSON string, an object, or a variant to tdigest, if possible.

tdigest_null

Returns a null value of type tdigest.

variant_null

Returns a null value of type variant.