fix column name

This commit is contained in:
serxa 2022-11-21 16:16:53 +00:00
parent 8e65b799c2
commit c425da06b2
4 changed files with 9 additions and 9 deletions

View File

@ -7,12 +7,12 @@ namespace DB
MovesListElement::MovesListElement(
const StorageID & table_id_,
const std::string & partition_id_,
const std::string & part_name_,
const std::string & target_disk_name_,
const std::string & target_disk_path_,
UInt64 part_size_)
: table_id(table_id_)
, partition_id(partition_id_)
, part_name(part_name_)
, target_disk_name(target_disk_name_)
, target_disk_path(target_disk_path_)
, part_size(part_size_)
@ -25,7 +25,7 @@ MoveInfo MovesListElement::getInfo() const
MoveInfo res;
res.database = table_id.database_name;
res.table = table_id.table_name;
res.partition_id = partition_id;
res.part_name = part_name;
res.target_disk_name = target_disk_name;
res.target_disk_path = target_disk_path;
res.part_size = part_size;

View File

@ -18,7 +18,7 @@ struct MoveInfo
{
std::string database;
std::string table;
std::string partition_id;
std::string part_name;
std::string target_disk_name;
std::string target_disk_path;
UInt64 part_size;
@ -30,7 +30,7 @@ struct MoveInfo
struct MovesListElement : private boost::noncopyable
{
const StorageID table_id;
const std::string partition_id;
const std::string part_name;
const std::string target_disk_name;
const std::string target_disk_path;
const UInt64 part_size;
@ -40,7 +40,7 @@ struct MovesListElement : private boost::noncopyable
MovesListElement(
const StorageID & table_id_,
const std::string & partition_id_,
const std::string & part_name_,
const std::string & target_disk_name_,
const std::string & target_disk_path_,
UInt64 part_size_);

View File

@ -15,7 +15,7 @@ NamesAndTypesList StorageSystemMoves::getNamesAndTypes()
{"elapsed", std::make_shared<DataTypeFloat64>()},
{"target_disk_name", std::make_shared<DataTypeString>()},
{"target_disk_path", std::make_shared<DataTypeString>()},
{"partition_id", std::make_shared<DataTypeString>()},
{"part_name", std::make_shared<DataTypeString>()},
{"part_size", std::make_shared<DataTypeUInt64>()},
{"thread_id", std::make_shared<DataTypeUInt64>()},
};
@ -38,7 +38,7 @@ void StorageSystemMoves::fillData(MutableColumns & res_columns, ContextPtr conte
res_columns[i++]->insert(move.elapsed);
res_columns[i++]->insert(move.target_disk_name);
res_columns[i++]->insert(move.target_disk_path);
res_columns[i++]->insert(move.partition_id);
res_columns[i++]->insert(move.part_name);
res_columns[i++]->insert(move.part_size);
res_columns[i++]->insert(move.thread_id);
}

View File

@ -374,7 +374,7 @@ CREATE TABLE system.moves
`elapsed` Float64,
`target_disk_name` String,
`target_disk_path` String,
`partition_id` String,
`part_name` String,
`part_size` UInt64,
`thread_id` UInt64
)