Fixing test.

This commit is contained in:
Nikolai Kochetov 2023-12-06 12:53:14 +00:00
parent 903f5db5f9
commit 7dc7062dad
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -77,6 +77,7 @@ public:
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 hasSetElements() const { return !set_elements.empty(); }
Columns getSetElements() const { checkIsCreated(); return { set_elements.begin(), set_elements.end() }; }
void checkColumnsNumber(size_t num_key_columns) const;