ClickHouse/src/Functions/array/arrayPushFront.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
461 B
C++
Raw Normal View History

#include "arrayPush.h"
2018-09-09 20:57:54 +00:00
#include <Functions/FunctionFactory.h>
namespace DB
{
class FunctionArrayPushFront : public FunctionArrayPush
{
public:
static constexpr auto name = "arrayPushFront";
2021-06-01 12:20:52 +00:00
static FunctionPtr create(ContextPtr) { return std::make_shared<FunctionArrayPushFront>(); }
2020-04-14 21:05:45 +00:00
FunctionArrayPushFront() : FunctionArrayPush(true, name) {}
2018-09-09 20:57:54 +00:00
};
REGISTER_FUNCTION(ArrayPushFront)
2018-09-09 20:57:54 +00:00
{
factory.registerFunction<FunctionArrayPushFront>();
}
}