ISNAN

更新时间: 2026-03-26 09:31:59

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
上一篇: FROM_UNIXTIME 下一篇: JSON_VALUE
阿里云首页 实时计算 Flink版 相关技术圈