aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/notEmpty.cpp
blob: f7d58e1514333dcf3e20e6f5274b0c14dbf39fb0 (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
#include <DataTypes/DataTypeString.h>
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionStringOrArrayToT.h>
#include <Functions/EmptyImpl.h>


namespace DB
{
namespace
{

struct NameNotEmpty
{
    static constexpr auto name = "notEmpty";
};
using FunctionNotEmpty = FunctionStringOrArrayToT<EmptyImpl<true>, NameNotEmpty, UInt8, false>;

}

REGISTER_FUNCTION(NotEmpty)
{
    factory.registerFunction<FunctionNotEmpty>();
}

}