2019-06-21 15:31:37 +00:00
|
|
|
#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
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(ArrayPushFront)
|
2018-09-09 20:57:54 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionArrayPushFront>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|