2022-03-17 05:51:35 +00:00
|
|
|
#include <Core/Block.h>
|
|
|
|
#include <IO/Operators.h>
|
|
|
|
#include <Common/JSONBuilder.h>
|
|
|
|
#include <Core/InterpolateDescription.h>
|
2022-03-19 06:41:12 +00:00
|
|
|
#include <Interpreters/convertFieldToType.h>
|
2022-03-17 05:51:35 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2022-03-24 19:29:29 +00:00
|
|
|
InterpolateDescription::InterpolateDescription(ExpressionActionsPtr actions_)
|
|
|
|
: actions(actions_)
|
2022-03-17 05:51:35 +00:00
|
|
|
{
|
2022-03-24 19:29:29 +00:00
|
|
|
for (const auto & name_type : actions->getRequiredColumnsWithTypes())
|
2022-03-27 17:33:22 +00:00
|
|
|
required_columns_map[name_type.name] = name_type.type;
|
2022-03-24 19:29:29 +00:00
|
|
|
|
2022-03-27 17:33:22 +00:00
|
|
|
for (const ColumnWithTypeAndName & column : actions->getSampleBlock())
|
|
|
|
result_columns_map.insert(column.name);
|
2022-03-17 05:51:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|