Functions#
Constants#
This class is utilized to represent SQL strings, with |
|
This class is utilized to represent SQL strings, with |
|
This class is utilized to represent SQL strings, with |
|
This class is utilized to represent SQL strings, with |
|
This class is utilized to represent SQL strings, with |
Analytics#
|
Computes the average (arithmetic mean) of an expression over a group of rows. |
|
Processes Boolean values and returns a Boolean value result. |
|
Processes Boolean values and returns a Boolean value result. |
|
Processes Boolean values and returns a Boolean value result. |
|
Assigns an event window number to each row, starting from 0, and increments by 1 when the result of evaluating the argument expression on the current row differs from that on the previous row. |
|
Assigns an event window number to each row, starting from 0, and increments the number by 1 when the result of the boolean argument expression evaluates true. |
|
Returns as a BIGINT the number of rows in each group where the expression is not NULL. |
|
Returns the value of the input expression at the given offset before the current row within a window. |
|
Returns values from the row after the current row within a window, letting you access more than one row in a table at the same time. |
|
Returns the greatest value of an expression over a group of rows. |
|
Computes the approximate median of an expression over a group of rows. |
|
Returns the smallest value of an expression over a group of rows. |
|
Returns the value evaluated at the row that is the nth row of the window (counting from 1). |
|
Computes the approximate percentile of an expression over a group of rows. |
|
Within each window partition, ranks all rows in the query results set according to the order specified by the window's ORDER BY clause. |
Assigns a sequence of unique numbers, starting from 1, to each row in a window partition. |
|
|
Evaluates the statistical sample standard deviation for each member of the group. |
|
Computes the sum of an expression over a group of rows. |
|
Evaluates the sample variance for each row of the group. |
Conditional#
Date#
|
Converts the input value to a DATE data type. |
|
Returns the day of the month as an integer. |
|
Returns the day of the week as an integer, where Sunday is day 1. |
|
Returns the day of the year as an integer, where January 1 is day 1. |
|
Extracts a sub-field, such as year or hour, from a date/time expression. |
|
Returns the current statement's start date and time as a TIMESTAMP value. |
Returns the current statement's start date and time at TIME ZONE 'UTC' as a TIMESTAMP value. |
|
|
Returns the hour portion of the specified date as an integer, where 0 is 00:00 to 00:59. |
|
Converts the input value to a INTERVAL data type. |
|
Returns the microsecond portion of the specified date as an integer. |
|
Returns the minute portion of the specified date as an integer. |
|
Returns the month portion of the specified date as an integer. |
|
Evaluates two time periods and returns true when they overlap, false otherwise. |
|
Returns calendar quarter of the specified date as an integer, where the January-March quarter is 1. |
|
Rounds the specified date or time. |
|
Returns the seconds portion of the specified date as an integer. |
|
Converts the input value to a TIMESTAMP data type. |
|
Returns the week of the year for the specified date as an integer, where the first week begins on the first Sunday on or preceding January 1. |
|
Returns an integer that represents the year portion of the specified date. |
Math#
|
Applies any Vertica function on the input expressions. |
|
Absolute Value. |
|
Trigonometric Inverse Cosine. |
|
Trigonometric Inverse Sine. |
|
Trigonometric Inverse Tangent. |
|
Trigonometric Inverse Tangent of the arithmetic dividend of the arguments. |
|
Cube Root. |
|
Ceiling Function. |
|
Number of ways to choose k items from n items. |
|
Trigonometric Cosine. |
|
Hyperbolic Cosine. |
|
Trigonometric Cotangent. |
|
Converts Radians to Degrees. |
|
Returns the distance (in kilometers) between two points. |
|
Exponential. |
|
Factorial. |
|
Floor Function. |
|
Gamma Function. |
|
Calculates a hash value over the function arguments. |
|
Returns True if the expression is finite. |
|
Returns True if the expression is infinite. |
|
Returns True if the expression is NaN. |
|
Natural Logarithm of the expression Gamma. |
|
Natural Logarithm. |
|
Logarithm. |
|
Converts Degrees to Radians. |
|
Rounds the expression. |
|
Sign of the expression. |
|
Trigonometric Sine. |
|
Hyperbolic Sine. |
|
Arithmetic Square Root. |
|
Trigonometric Tangent. |
|
Hyperbolic Tangent. |
|
Truncates the expression. |
Null Handling#
|
Returns the value of the first non-null expression in the list. |
|
Evaluates to NULL if the value in the expression is 0. |
|
Evaluates to 0 if the expression is NULL. |
Random#
|
Returns a Random Number. |
|
Returns a Random Number from 0 through n - 1. |
|
Returns a Seeded Random Number using the input random state. |
Regular Expression#
|
Returns the number of times a regular expression matches a string. |
|
Returns true if the string contains a match for the regular expression. |
|
Returns the starting or ending position in a string where a regular expression matches. |
|
Returns true if the string matches the regular expression. |
|
Replace all occurrences of a substring that match a regular expression with another substring. |
|
Returns the substring that matches a regular expression within a string. |
String#
|
Returns the length of a string. |
|
Returns a VARCHAR value containing the argument converted to lowercase letters. |
|
Returns VARCHAR or VARBINARY value representing a substring of a specified string. |
|
Returns a VARCHAR value containing the argument converted to uppercase letters. |
|
Calculates and returns the Levenshtein distance between two strings. |
|
Returns Soundex encoding of a varchar strings as a four character string. |
|
Generates and compares Soundex encodings of two strings, and returns a count of the matching characters (ranging from 0 for no match to 4 for an exact match). |
|
Calculates and returns the Jaro distance between two strings. |
|
Calculates and returns the Jaro-Winkler distance between two strings. |