This topic describes the operators and functions that row filters and pass conditions support when you configure custom rules.
Numeric and temporal field operators
Use numeric operators to evaluate values in Integer, Long, Float, Date, DateTime, and Time fields.
| Operator | Binary or unary | Expression true when |
|---|---|---|
| is | Binary | Field value is equal to a literal or field value. |
| is not | Binary | Field value is not equal to a literal or field value. |
| is null | Unary | Field value is null. |
| is not null | Unary | Field value is not null. |
| Greater than | Binary | Field value is greater than a literal or field value. |
| Greater than or equal | Binary | Field value is greater than or equal to a literal or field value. |
| Less than | Binary | Field value is less than a literal or field value. |
| Less than or equal | Binary | Field value is less than or equal to a literal or field value. |
String field operators
Use string operators to evaluate values in textual fields.
| Operator | Binary or unary | Expression true when |
|---|---|---|
| Equal | Binary | Field string value matches a literal or field value. |
| Not equal | Binary | Field string value does not match a literal or field value. |
| In | Binary | Field string value matches any one of two or more literal values. (Type and press Enter to add each literal value to the box.) |
Logical field operators
Use logical operators to evaluate fields that contain true or false values.
| Operator | Binary or unary | Expression true when |
|---|---|---|
| Equal | Binary | Field value is equal to either a literal True or False value or to the value in another Boolean field. |
| Null | Unary | Field value is null. |
| Not null | Unary | Field value is not null. |
Operators
| Operator | Description |
|---|---|
| = (equals) |
Selects records where a field value is equal to a
specified value. For example, |
| != (not equal to) |
Selects records where a field value is not equal to a specified value. |
| > (greater than) |
Selects records where a field value is greater than a
specified value. For example, |
| < (less than) |
Selects records where a field value is less than a specified value. |
| >= (greater than or equal to) |
Selects records where a field value is greater than or equal to a specified value. |
| <= (less than or equal to) |
Selects records where a field value is less than or equal to a specified value. |
| IN |
Selects records where a field value matches any value
in a specified list. For example, |
| IS NULL | Selects records where the specified field has a null
or undefined value. For example, use Phone
Number IS NULL to find records where the
phone number field is empty. |
| IS NOT NULL | Selects records where the specified field has a
defined (non-null) value. For example, use Email
IS NOT NULL to find records where the email
field is filled in. |
| AND |
Logical operator for multiple conditions
and returns results that satisfy all of them. For
example, select data where |
| OR |
Logical operator for conditions and returns
results that satisfy at least one of them. For
example, select data where |
| ! |
Logical operator that negates a condition, returning
results that do not meet the specified criteria. For
example, |
Functions
| Function | Description | Syntax | Example |
|---|---|---|---|
| ucase | Converts the input string to uppercase characters. |
|
Returns'AMY' |
| lcase | Converts the input string to lowercase characters. |
|
Returns'stamp'
|
| tcase | Converts the input string to title case. |
|
Returns'Mary'
|
| trim | Removes leading and trailing white space from the input string. |
|
Returns 'Amy' ( By removing extra spaces) |
| ltrim | Removes leading (left-side) spaces from a string. |
|
Returns 'Amy' ( By removing extra spaces to the left of the attribute value) |
| rtrim | Removes trailing (right-side) spaces from a string. |
|
Returns 'Amy' ( By removing extra spaces to the right of the attribute value)
|
| lpack | Removes spaces between elements and preserves any trailing blanks. |
|
Returns ' TestEngineer' |
| rpack | Removes spaces between elements and preserves any leading blanks. |
|
Returns 'TestEngineer' |
| mask | Generates a pattern for an input value, replacing certain characters with specified placeholders. |
|
Returns 'NA-NNNNAA'
|
| substr | Extracts a substring from a given string based on specified starting position and length. |
|
Returns 'TENGINEER'
Returns 'ENG'
|
| concat | Joins two or more strings without space. |
|
Returns 'TEST-ENGINEER' |
| regexp | Applies regular expressions to a string and returns the part of the string that matches the expression. |
|
Returns 'TEST' |
| replace | Replaces occurrences of a specified substring or pattern in a string with another substring. |
|
Returns 'TestSoftware'
|
| split | Splits a string into an array of substrings based on a specified separator character. |
|
Returns 'Engineer'
Returns 'Test'
|
| now | Converts the current date-time to localDateTime. |
|
Returns the value based on your current system time: 2026-04-22 23:49:15
|
|
dt_diff
|
Calculates the difference between two date-time values in the same or different formats. |
|
Returns -3578.0
Returns 864000.0
Returns 28944000.0
|
| isalpha |
Checks if the string argument is alphabetic.
|
|
Returns True
Returns True
|
|
isalphanum
|
Checks if the string argument is alphanumeric.
|
|
Returns True
Returns True
|
| dt_is_date | Checks whether the input is a date. |
|
Returns True |
|
dt_is_time
|
Checks whether the input is a time value.
|
|
Returns True
|
| begins_with | Checks whether a string starts with the specified value. |
|
Returns False |
| ends_with | Checks whether a string ends with the specified value. |
|
Returns True
Returns False |
| not_in | Excludes values present in the data. |
|
Returns False
Returns True |
| to_date |
Converts an ISO-format string to LocalDate.
|
|
Returns the date value in the local date datatype form. |
| to_time |
Converts an ISO-format string to LocalTime.
|
|
Returns the time value in the local time datatype form.
|
| to_datetime |
Converts an ISO-format string to LocalDateTime.
|
|
Returns the datetime in the Local Date Time form |
| reverse | Reverses the string. |
|
Returns 'olleh'
|
| hexval | Converts a hexadecimal value to a character. |
|
Returns 48656C6C6F
|
| humanize | Converts a string to a human-readable text format. |
|
Returns Foo bar baz |
| metaphone | Returns the metaphone code for a value. |
|
Returns PRKRMNK
|
| soundex | Returns a value's 4-character soundex code. |
|
Returns H400
|
| standardize | Converts a value into a standardized decimal, integer, or string. |
|
Returns HELLO |
| insert | Inserts or overwrites one string in another at the specified offset and overwrite options. |
|
Returns Hello Earth
|
| to_string |
Converts data to a string value.
|
|
Returns '123'
|
| dt_name |
Extracts the specified part of a date-time value and returns the localized name.
|
|
Returns 'February'
|
| dt_min |
Compares date-time inputs and returns the minimum value.
|
|
Returns '03/12/2013'
|
|
dt_max
|
Compares date-time inputs and returns the maximum value.
|
|
Returns '2014-11-23'
|
| dt_now |
Returns the current date-time in the specified format.
|
|
Returns '2024-11-05'
Returns '2014-06-16 16:11'
Returns '06-16'
|
|
seconds_to_date
|
Converts seconds to the specified date-time format.
|
|
Returns 2011-12-03 10:15:30 |
|
dt_convert
|
Converts date-time from the original format to the specified format.
|
|
Returns 2013-12-03
|
|
dt_ceiling
|
Updates the specified part of a date-time value to its maximum level. |
|
Returns 2014-03-01
|
|
dt_add
|
Increments or decrements the specified date or time part.
|
|
Returns '05/06/2022'
Returns '01/06/2022' |
|
append
|
Appends a list of strings to a single string.
|
|
Returns 'hello world' |
|
length
|
Returns the length of a string.
|
|
Returns 9 |
|
to_number
|
Converts a numeric string to a number.
|
|
Returns 12345
Returns 12.23
|
|
abs
|
Returns the absolute value of a number
|
|
Returns 7.25
|
|
ceiling
|
Rounds a number rounded UP to the nearest integer. |
|
Returns 3 |
|
floor
|
Rounds a number DOWN to the nearest integer
|
|
Returns 3
|
|
square_root
|
Returns the square root of a number
|
|
Returns 9 |
|
to_int
|
Converts double value to integer value.
|
|
Returns 22
|
|
seconds_in
|
Returns number of seconds within a time period.
|
|
Returns 172,800
|
|
to_decimal
|
Converts integer value to decimal value. |
|
Returns 22.0
|
|
max
|
Returns the larger of two numbers.
|
|
Returns 10 |
| min |
Returns the smaller value of two numbers.
|
|
Returns 5 |
|
divide_int
|
Returns the quotient of the division
|
|
Returns 2
|
|
rem
|
Returns the remainder of the division
|
|
Returns 0 |
|
percent
|
Returns the percentage that one number is of another number.
|
|
Returns 200% |
|
power
|
Calculates the values of one number raised to the power of another.
|
|
Returns 9
|
|
round
|
Rounds a decimal number according to the rounding mode.
|
|
Returns 4.5
|
|
occstr
|
Returns the position of a substring by parsing the string in the specified direction.
|
|
Returns 4
Returns 5
|
|
to_epoch
|
Returns epoch seconds for a date-time value.
|
|
Returns 1692535820
|
|
array_length
|
Returns the length of the specified list.
|
|
Returns 3
|
|
date_to_seconds
|
Converts an ISO-format string to UTC seconds. |
|
Returns 170367324
|
|
dt_part
|
Extracts the specified part of a date-time value and returns it as an integer.
|
|
Returns 2004
Returns 4 |
|
isblank
|
Checks if the string argument is blank.
|
|
Returns True
|
|
isnumeric
|
Checks if the string argument is numeric. |
|
Returns True
Returns True
Returns False
|
|
isnull
|
Checks if the string argument is null.
|
|
Returns False
|
|
isempty
|
Checks if the string argument is empty.
|
|
Returns True
Returns False
|
|
islogical
|
Checks if the string argument can be evaluated as
a logical value. The function returns true for
|
|
Returns True
Returns True
Returns True
Returns False
|
|
isnumber
|
Checks if the string argument is number.
|
|
Returns True
|
|
contains
|
Checks if the string argument contains the search string.
|
|
Returns True
Returns False
|
|
matches
|
Checks if the string argument matches the regex.
|
|
Returns True
|
Syntax:
dt_name(String date, String format, String
part)
Example: dt_name('16-08-2026',
'dd-MM-yyyy', 'day')
If the date is not stored as a String in the table,
convert it with the to_string() function.
Example:
dt_name(to_string(DATE_COLUMN_NAME), 'dd-MM-yyyy',
'day').
- Check if a string is numeric and contains a specific
character
Query:
isnumber(data) AND contains(data, 'CHARACTER')Example:
isnumber('123.4$') AND contains('123.4$', '$')Returns true.
- Check if the data is a logical value or an empty string
Query:
islogical(data) || isempty(data)Example:
islogical('') || isempty('')Returns true since the string is empty.
- Check if a string is numeric but not a whole
number
Query:
isnumeric(data) AND contains(data, '.')Example: isnumeric('12.34') AND contains('12.34', '.')
Returns true since the string is numeric and contains a dot.
- Check if a string matches a regex and is not
null
Query:
!isempty(data) AND matches(data, '^[A-Za-z0-9]+$')Example:
!isempty('User123') AND matches('User123', '^[A-Za-z0-9]+$')Returns true.
Dimensions supported in Custom rules
| Dimension | Description |
|---|---|
| Completeness | Checks completeness in the configured custom rule. |
| Validity | Checks whether entered values are valid, eliminating void or null values. |
| Consistency | Checks for consistency of information across systems. |
| Accuracy | Reflects how accurately information represents actual values. |
| Timeliness | Checks whether information is available when required. |
| Uniqueness | Checks whether each data element appears only once in the database. |