Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp

This commit is contained in:
Nikolai Kochetov 2018-05-03 18:20:58 +03:00
parent ed83798dd2
commit 153fda001e
2 changed files with 4 additions and 3 deletions

View File

@ -22,17 +22,17 @@ namespace ErrorCodes
namespace namespace
{ {
const ColumnWithDictionary & getColumnWithDictionary(const IColumn & column) const const ColumnWithDictionary & getColumnWithDictionary(const IColumn & column)
{ {
return typeid_cast<const ColumnWithDictionary &>(column); return typeid_cast<const ColumnWithDictionary &>(column);
} }
ColumnWithDictionary & getColumnWithDictionary(IColumn & column) const ColumnWithDictionary & getColumnWithDictionary(IColumn & column)
{ {
return typeid_cast<ColumnWithDictionary &>(column); return typeid_cast<ColumnWithDictionary &>(column);
} }
IColumn & getNestedUniqueColumn(ColumnWithDictionary & column_with_dictionary) const IColumn & getNestedUniqueColumn(ColumnWithDictionary & column_with_dictionary)
{ {
return column_with_dictionary.getUnique()->getNestedColumn()->assumeMutableRef(); return column_with_dictionary.getUnique()->getNestedColumn()->assumeMutableRef();
} }

View File

@ -10,6 +10,7 @@
#include <ext/collection_cast.h> #include <ext/collection_cast.h>
#include <DataTypes/DataTypeWithDictionary.h> #include <DataTypes/DataTypeWithDictionary.h>
#include <DataTypes/getLeastSupertype.h> #include <DataTypes/getLeastSupertype.h>
#include <Columns/ColumnWithDictionary.h>
namespace DB namespace DB