From 8160b2af6a883b982529889795898d86727ca437 Mon Sep 17 00:00:00 2001 From: achulkov2 Date: Mon, 23 Dec 2019 16:43:12 +0300 Subject: [PATCH] Compilation errors --- dbms/src/Dictionaries/PolygonDictionary.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dbms/src/Dictionaries/PolygonDictionary.cpp b/dbms/src/Dictionaries/PolygonDictionary.cpp index 10ed734c406..d8d251fcd83 100644 --- a/dbms/src/Dictionaries/PolygonDictionary.cpp +++ b/dbms/src/Dictionaries/PolygonDictionary.cpp @@ -145,8 +145,9 @@ void IPolygonDictionary::loadData() { void IPolygonDictionary::calculateBytesAllocated() { - for (const auto & block : blocks) - bytes_allocated += block.allocatedBytes(); + // TODO:: Account for key. + for (const auto & column : attributes) + bytes_allocated += column->allocatedBytes(); } @@ -224,8 +225,6 @@ T IPolygonDictionary::getNullValue(const DB::Field &field) void IPolygonDictionary::getString( const std::string & attribute_name, const Columns & key_columns, const DataTypes &, ColumnString * out) const { - dict_struct.validateKeyTypes(key_types); - const auto ind = getAttributeIndex(attribute_name); checkAttributeType(name, attribute_name, dict_struct.attributes[ind].underlying_type, AttributeUnderlyingType::utString);