Fix error

This commit is contained in:
Amos Bird 2021-03-02 19:12:51 +08:00
parent c41dedc922
commit 494c2dba6c
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4

View File

@ -313,7 +313,9 @@ void ColumnLowCardinality::compareColumn(const IColumn & rhs, size_t rhs_row_num
bool ColumnLowCardinality::hasEqualValues() const
{
return getDictionary().size() <= 1;
if (getDictionary().size() <= 1)
return true;
return getIndexes().hasEqualValues();
}
void ColumnLowCardinality::getPermutationImpl(bool reverse, size_t limit, int nan_direction_hint, Permutation & res, const Collator * collator) const