mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Upd FunctionArrayMapped
This commit is contained in:
parent
939a15d29a
commit
f7f002139a
@ -142,7 +142,7 @@ public:
|
||||
+ toString(arguments.size()) + ".",
|
||||
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||
|
||||
if (arguments.size() == 1)
|
||||
if ((arguments.size() == 1) && std::is_same_v<typename Impl::data_type, DataTypeArray>)
|
||||
{
|
||||
const auto * array_type = checkAndGetDataType<typename Impl::data_type>(arguments[0].type.get());
|
||||
|
||||
|
@ -34,7 +34,7 @@ struct MapFilterImpl
|
||||
|
||||
static bool needBoolean() { return true; }
|
||||
static bool needExpression() { return true; }
|
||||
static bool needOneArray() { return false; }
|
||||
static bool needOneArray() { return true; }
|
||||
|
||||
static DataTypePtr getReturnType(const DataTypePtr & /*expression_return*/, const DataTypes & elems)
|
||||
{
|
||||
@ -101,7 +101,7 @@ struct MapApplyImpl
|
||||
/// true if the expression (for an overload of f(expression, maps)) or a map (for f(map)) should be boolean.
|
||||
static bool needBoolean() { return false; }
|
||||
static bool needExpression() { return true; }
|
||||
static bool needOneArray() { return false; }
|
||||
static bool needOneArray() { return true; }
|
||||
|
||||
static DataTypePtr getReturnType(const DataTypePtr & expression_return, const DataTypes & /*elems*/)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user