All Products
Search
Document Center

Realtime Compute for Apache Flink:ISNAN

Last Updated:Mar 26, 2026

ISNAN checks whether a floating-point number is NaN (Not a Number). It returns true if the value is NaN, and false otherwise. The function is similar to Double.isNaN() and Float.isNaN() in Java.

Limitations

ISNAN is supported only in Realtime Compute for Apache Flink that uses Ververica Runtime (VVR) 3.0.0 or later.

Syntax

BOOLEAN ISNAN(DOUBLE d)
BOOLEAN ISNAN(FLOAT f)

Input parameters

ParameterData type
dDOUBLE
fFLOAT

Example

Test data (T1)

df
0.10.1
00

Test statement

SELECT
  ISNAN(CAST(d AS DOUBLE)) AS d1,
  ISNAN(CAST(f AS FLOAT)) AS d2
FROM T1;

Test result

d1 (BOOLEAN)d2 (BOOLEAN)
falsefalse
falsefalse