blob: 1d7102944424eb1c9e2f48417a216b8fb36f571f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <Functions/FunctionNumericPredicate.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
namespace
{
struct IsNaNImpl
{
static constexpr auto name = "isNaN";
template <typename T>
static bool execute(const T t)
{
return t != t;
}
};
using FunctionIsNaN = FunctionNumericPredicate<IsNaNImpl>;
}
REGISTER_FUNCTION(IsNaN)
{
factory.registerFunction<FunctionIsNaN>();
}
}
|