ClickHouse/src/Functions/array/arrayPopFront.cpp
Alexander Kuzmenkov 3f57fc085b remove mutable context references from functions interface
Also remove it from some visitors.
2021-05-28 19:45:37 +03:00

22 lines
484 B
C++

#include "arrayPop.h"
#include <Functions/FunctionFactory.h>
namespace DB
{
class FunctionArrayPopFront : public FunctionArrayPop
{
public:
static constexpr auto name = "arrayPopFront";
static FunctionPtr create(ContextConstPtr) { return std::make_shared<FunctionArrayPopFront>(); }
FunctionArrayPopFront() : FunctionArrayPop(true, name) {}
};
void registerFunctionArrayPopFront(FunctionFactory & factory)
{
factory.registerFunction<FunctionArrayPopFront>();
}
}