mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Fix tests with group by
This commit is contained in:
parent
5978ca040b
commit
63a56f4bd9
@ -1510,7 +1510,7 @@ void InterpreterSelectQuery::executeOrder(Pipeline & pipeline, SelectQueryInfo &
|
||||
settings.max_bytes_before_external_sort, context.getTemporaryPath());
|
||||
};
|
||||
|
||||
if (settings.optimize_pk_order)
|
||||
if (settings.optimize_pk_order && !query.groupBy())
|
||||
{
|
||||
if (const auto * merge_tree = dynamic_cast<const MergeTreeData *>(storage.get()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user