ClickHouse/dbms/src/Functions/arrayPushFront.cpp

24 lines
552 B
C++
Raw Normal View History

2018-09-09 20:57:54 +00:00
#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>();
}
}