IS_NOT_ERROR (Lakehouse v1)
Returns a Boolean value indicating whether an expression is an error value.
See also: IS_ERROR
Analyze Syntax
Section titled “Analyze Syntax”func.is_error( <expr> )Analyze Examples
Section titled “Analyze Examples”# Indicates division by zero, hence an errorfunc.is_error((1 / 0)), func.is_not_error((1 / 0))
┌─────────────────────────────────────────────────────┐│ func.is_error((1 / 0)) │ func.is_not_error((1 / 0)) │├────────────────────────┼────────────────────────────┤│ true │ false │└─────────────────────────────────────────────────────┘
# The conversion to DATE is successful, hence not an errorfunc.is_error(func.to_date('2024-03-17')), func.is_not_error(func.to_date('2024-03-17'))
┌───────────────────────────────────────────────────────────────────────────────────────────┐│ func.is_error(func.to_date('2024-03-17')) │ func.is_not_error(func.to_date('2024-03-17')) │├───────────────────────────────────────────┼───────────────────────────────────────────────┤│ false │ true │└───────────────────────────────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”IS_NOT_ERROR( <expr> )Return Type
Section titled “Return Type”Returns true if the expression is not an error, otherwise false.
SQL Examples
Section titled “SQL Examples”-- Indicates division by zero, hence an errorSELECT IS_ERROR(1/0), IS_NOT_ERROR(1/0);
┌───────────────────────────────────────────┐│ is_error((1 / 0)) │ is_not_error((1 / 0)) │├───────────────────┼───────────────────────┤│ true │ false │└───────────────────────────────────────────┘
-- The conversion to DATE is successful, hence not an errorSELECT IS_ERROR('2024-03-17'::DATE), IS_NOT_ERROR('2024-03-17'::DATE);
┌─────────────────────────────────────────────────────────────────┐│ is_error('2024-03-17'::date) │ is_not_error('2024-03-17'::date) │├──────────────────────────────┼──────────────────────────────────┤│ false │ true │└─────────────────────────────────────────────────────────────────┘