ClickHouse/dbms/src/Functions/arrayPushFront.cpp
2018-09-09 23:57:54 +03:00

24 lines
552 B
C++

#include <Functions/arrayPush.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
class FunctionArrayPushFront : public FunctionArrayPush
{
public:
static constexpr auto name = "arrayPushFront";
static FunctionPtr create(const Context & context) { return std::make_shared<FunctionArrayPushFront>(context); }
FunctionArrayPushFront(const Context & context) : FunctionArrayPush(context, true, name) {}
};
void registerFunctionArrayPushFront(FunctionFactory & factory)
{
factory.registerFunction<FunctionArrayPushFront>();
}
}