From 2cf9da72ff0a9cbb289cbd645d1a94bfd413bf9a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 28 Apr 2021 06:49:46 +0300 Subject: [PATCH] Fix illiterate error message #23700 --- src/Storages/MergeTree/registerStorageMergeTree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Storages/MergeTree/registerStorageMergeTree.cpp b/src/Storages/MergeTree/registerStorageMergeTree.cpp index 862747abcb9..0cff7e00bc6 100644 --- a/src/Storages/MergeTree/registerStorageMergeTree.cpp +++ b/src/Storages/MergeTree/registerStorageMergeTree.cpp @@ -762,8 +762,8 @@ static StoragePtr create(const StorageFactory::Arguments & args) { for (size_t i = 0; i < data_types.size(); ++i) if (isFloat(data_types[i])) - throw Exception( - "Donot support float point as partition key: " + metadata.partition_key.column_names[i], ErrorCodes::BAD_ARGUMENTS); + throw Exception(ErrorCodes::BAD_ARGUMENTS, + "Floating point partition key is not supported: {}", metadata.partition_key.column_names[i]); } if (arg_num != arg_cnt)