mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
Fixing test.
This commit is contained in:
parent
903f5db5f9
commit
7dc7062dad
@ -189,7 +189,8 @@ SetPtr FutureSetFromSubquery::buildOrderedSetInplace(const ContextPtr & context)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_and_key->set->fillSetElements();
|
if (!set_and_key->set->hasSetElements())
|
||||||
|
set_and_key->set->fillSetElements();
|
||||||
|
|
||||||
return buildSetInplace(context);
|
return buildSetInplace(context);
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ public:
|
|||||||
const DataTypes & getElementsTypes() const { return set_elements_types; }
|
const DataTypes & getElementsTypes() const { return set_elements_types; }
|
||||||
|
|
||||||
bool hasExplicitSetElements() const { return fill_set_elements || (!set_elements.empty() && set_elements.front()->size() == data.getTotalRowCount()); }
|
bool hasExplicitSetElements() const { return fill_set_elements || (!set_elements.empty() && set_elements.front()->size() == data.getTotalRowCount()); }
|
||||||
|
bool hasSetElements() const { return !set_elements.empty(); }
|
||||||
Columns getSetElements() const { checkIsCreated(); return { set_elements.begin(), set_elements.end() }; }
|
Columns getSetElements() const { checkIsCreated(); return { set_elements.begin(), set_elements.end() }; }
|
||||||
|
|
||||||
void checkColumnsNumber(size_t num_key_columns) const;
|
void checkColumnsNumber(size_t num_key_columns) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user