| 1 | #include <DataTypes/DataTypeString.h> |
|---|---|
| 2 | #include <Functions/FunctionFactory.h> |
| 3 | #include <Functions/FunctionStringOrArrayToT.h> |
| 4 | #include <Functions/EmptyImpl.h> |
| 5 | |
| 6 | |
| 7 | namespace DB |
| 8 | { |
| 9 | |
| 10 | struct NameNotEmpty |
| 11 | { |
| 12 | static constexpr auto name = "notEmpty"; |
| 13 | }; |
| 14 | using FunctionNotEmpty = FunctionStringOrArrayToT<EmptyImpl<true>, NameNotEmpty, UInt8>; |
| 15 | |
| 16 | void registerFunctionNotEmpty(FunctionFactory & factory) |
| 17 | { |
| 18 | factory.registerFunction<FunctionNotEmpty>(); |
| 19 | } |
| 20 | |
| 21 | } |
| 22 |