Merge pull request #3568 from yandex/fix-low-cardinality-nullable-perf

Fix perf in IColumnUnique::size func.
This commit is contained in:
alexey-milovidov 2018-11-14 03:27:05 +03:00 committed by GitHub
commit 2f16ec5c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ public:
/// Uses thread-safe cache.
virtual const UInt64 * tryGetSavedHash() const = 0;
size_t size() const override { return getNestedColumn()->size(); }
size_t size() const override { return getNestedNotNullableColumn()->size(); }
/// Appends new value at the end of column (column's size is increased by 1).
/// Is used to transform raw strings to Blocks (for example, inside input format parsers)