mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
fix WITH TIES
This commit is contained in:
parent
100cee18c3
commit
2e0374fbd4
@ -1547,8 +1547,8 @@ void InterpreterSelectQuery::executeUnion(Pipeline & pipeline)
|
||||
void InterpreterSelectQuery::executePreLimit(Pipeline & pipeline)
|
||||
{
|
||||
auto & query = getSelectQuery();
|
||||
/// If there is LIMIT and no WITH TIES
|
||||
if (query.limitLength() && !query.limit_with_ties)
|
||||
/// If there is LIMIT
|
||||
if (query.limitLength())
|
||||
{
|
||||
auto [limit_length, limit_offset] = getLimitLengthAndOffset(query, context);
|
||||
pipeline.transform([&, limit = limit_length + limit_offset](auto & stream)
|
||||
|
Loading…
Reference in New Issue
Block a user