2021-04-23 23:56:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Core/Block.h>
|
|
|
|
#include <Core/NamesAndTypes.h>
|
2021-05-26 02:41:38 +00:00
|
|
|
#include <Common/FieldVisitors.h>
|
2021-04-23 23:56:26 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2021-05-06 05:33:06 +00:00
|
|
|
size_t getNumberOfDimensions(const IDataType & type);
|
|
|
|
size_t getNumberOfDimensions(const IColumn & column);
|
2021-05-26 02:41:38 +00:00
|
|
|
DataTypePtr getBaseTypeOfArray(DataTypePtr type);
|
2021-05-06 05:33:06 +00:00
|
|
|
DataTypePtr createArrayOfType(DataTypePtr type, size_t dimension);
|
|
|
|
|
2021-04-23 23:56:26 +00:00
|
|
|
DataTypePtr getDataTypeByColumn(const IColumn & column);
|
2021-05-29 01:19:20 +00:00
|
|
|
void convertObjectsToTuples(NamesAndTypesList & columns_list, Block & block, const NamesAndTypesList & extended_storage_columns);
|
2021-04-24 04:09:01 +00:00
|
|
|
DataTypePtr getLeastCommonTypeForObject(const DataTypes & types);
|
2021-05-06 05:33:06 +00:00
|
|
|
void optimizeTypesOfObjectColumns(MutableColumns & columns);
|
2021-04-23 23:56:26 +00:00
|
|
|
|
|
|
|
}
|