mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
24 lines
552 B
C++
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>();
|
|
}
|
|
|
|
}
|