mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
bayseAB returns an empty block if input_rows_count is 0 and isDeterministic returns false
This commit is contained in:
parent
d4aff270db
commit
769a6dfb08
@ -141,6 +141,9 @@ public:
|
||||
return name;
|
||||
}
|
||||
|
||||
bool isDeterministic() const override { return false; }
|
||||
bool isDeterministicInScopeOfQuery() const override { return false; }
|
||||
|
||||
size_t getNumberOfArguments() const override { return 5; }
|
||||
|
||||
DataTypePtr getReturnTypeImpl(const DataTypes &) const override
|
||||
@ -148,8 +151,14 @@ public:
|
||||
return std::make_shared<DataTypeString>();
|
||||
}
|
||||
|
||||
void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result, size_t) override
|
||||
void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result, size_t input_rows_count) override
|
||||
{
|
||||
if (input_rows_count == 0)
|
||||
{
|
||||
block.getByPosition(result).column = std::move(ColumnString::create());
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<double> xs, ys;
|
||||
std::vector<std::string> variant_names;
|
||||
String dist;
|
||||
|
Loading…
Reference in New Issue
Block a user