mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix bug for quantile fusion
This commit is contained in:
parent
5a7f30171a
commit
aabe52e3e9
@ -47,7 +47,7 @@ void GatherFunctionQuantileData::visit(ASTFunction & function, ASTPtr & ast)
|
||||
void GatherFunctionQuantileData::FuseQuantileAggregatesData::addFuncNode(ASTPtr & ast)
|
||||
{
|
||||
const auto * func = ast->as<ASTFunction>();
|
||||
if (!func)
|
||||
if (!func || func->parameters == nullptr)
|
||||
return;
|
||||
|
||||
const auto & arguments = func->arguments->children;
|
||||
|
@ -95,3 +95,4 @@ FROM
|
||||
FROM numbers(10)
|
||||
)
|
||||
GROUP BY b
|
||||
1 1 1
|
||||
|
@ -71,3 +71,6 @@ SELECT quantileTimingWeighted([[[[['-214748364.8'], NULL]], [[[quantileTimingWei
|
||||
SELECT quantileTimingWeighted([quantileTimingWeighted(0.5)(1, 1)])(1, 1); -- { serverError ILLEGAL_AGGREGATION }
|
||||
|
||||
DROP TABLE datetime;
|
||||
|
||||
SET optimize_syntax_fuse_functions = 1;
|
||||
SELECT quantile(1 AS a), quantile(a AS b), quantile(b AS c);
|
||||
|
Loading…
Reference in New Issue
Block a user