mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
Fixing tests.
This commit is contained in:
parent
5589442aad
commit
a3cd1ba197
@ -118,7 +118,8 @@ SortingProperty applyOrder(QueryPlan::Node * parent, SortingProperty * propertie
|
|||||||
|
|
||||||
if (auto * sorting_step = typeid_cast<SortingStep *>(parent->step.get()))
|
if (auto * sorting_step = typeid_cast<SortingStep *>(parent->step.get()))
|
||||||
{
|
{
|
||||||
if (optimization_settings.optimize_sorting_by_input_stream_properties && !sorting_step->hasPartitions())
|
if (optimization_settings.optimize_sorting_by_input_stream_properties
|
||||||
|
&& !sorting_step->hasPartitions() && sorting_step->getType() == SortingStep::Type::Full)
|
||||||
{
|
{
|
||||||
auto common_prefix = commonPrefix(properties->sort_description, sorting_step->getSortDescription());
|
auto common_prefix = commonPrefix(properties->sort_description, sorting_step->getSortDescription());
|
||||||
if (!common_prefix.empty())
|
if (!common_prefix.empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user