Remove a few unnecessary function implementations

This commit is contained in:
Robert Schulze 2023-11-02 20:46:28 +00:00
parent dee8775c6a
commit 4ccdad50c1
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 0 additions and 22 deletions

View File

@ -57,24 +57,11 @@ public:
static FunctionPtr create(ContextPtr ctx) { return std::make_shared<FunctionFromDaysSinceYearZero>(ctx); }
FunctionFromDaysSinceYearZero() = default;
explicit FunctionFromDaysSinceYearZero(ContextPtr ctx_) : ctx(ctx_) {}
String getName() const override { return name; }
bool isInjective(const ColumnsWithTypeAndName &) const override
{
return false; /// invalid argument values that are out of supported range are converted into a default value
}
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return true; }
bool useDefaultImplementationForNulls() const override { return true; }
bool useDefaultImplementationForConstants() const override { return true; }
bool isVariadic() const override { return false; }
size_t getNumberOfArguments() const override { return 1; }
DataTypePtr getReturnTypeImpl(const ColumnsWithTypeAndName & arguments) const override

View File

@ -36,19 +36,10 @@ namespace
class FunctionWithNumericParamsBase : public IFunction
{
public:
bool isInjective(const ColumnsWithTypeAndName &) const override
{
return false; /// invalid argument values and timestamps that are out of supported range are converted into a default value
}
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return true; }
bool useDefaultImplementationForNulls() const override { return true; }
bool useDefaultImplementationForConstants() const override { return true; }
bool isVariadic() const override { return true; }
size_t getNumberOfArguments() const override { return 0; }
protected: