fix: function visibility

This commit is contained in:
myrrc 2020-07-28 18:26:53 +03:00
parent aaa05f2466
commit cf696afd4c

View File

@ -660,6 +660,11 @@ struct ArrayIndexGenericNullImpl
}
};
inline bool allowNested(const DataTypePtr & left, const DataTypePtr & right)
{
return ((isNativeNumber(left) || isEnum(left)) && isNativeNumber(right)) || left->equals(*right);
}
inline bool allowArguments(const DataTypePtr & array_inner_type, const DataTypePtr & arg)
{
if (allowNested(array_inner_type, arg))
@ -732,11 +737,6 @@ inline bool allowArguments(const DataTypePtr & array_inner_type, const DataTypeP
return false;
}
inline bool allowNested(const DataTypePtr & left, const DataTypePtr & right)
{
return ((isNativeNumber(left) || isEnum(left)) && isNativeNumber(right)) || left->equals(*right);
}
template <class ConcreteAction, class Name>
class FunctionArrayIndex : public IFunction
{