ClickHouse/src/DataTypes/ObjectUtils.h

19 lines
528 B
C++
Raw Normal View History

2021-04-23 23:56:26 +00:00
#pragma once
#include <Core/Block.h>
#include <Core/NamesAndTypes.h>
namespace DB
{
size_t getNumberOfDimensions(const IDataType & type);
size_t getNumberOfDimensions(const IColumn & column);
DataTypePtr createArrayOfType(DataTypePtr type, size_t dimension);
2021-04-23 23:56:26 +00:00
DataTypePtr getDataTypeByColumn(const IColumn & column);
void convertObjectsToTuples(NamesAndTypesList & columns_list, Block & block);
2021-04-24 04:09:01 +00:00
DataTypePtr getLeastCommonTypeForObject(const DataTypes & types);
void optimizeTypesOfObjectColumns(MutableColumns & columns);
2021-04-23 23:56:26 +00:00
}