mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp
This commit is contained in:
parent
ed83798dd2
commit
153fda001e
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user