From c2c621c6dcc9cd9fabfe22fe1b82e228aa07eccc Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Wed, 6 Oct 2021 23:33:36 +0300 Subject: [PATCH] Dictionary attributes updated documentation --- docs/en/sql-reference/statements/create/dictionary.md | 8 ++++---- src/Dictionaries/DictionaryStructure.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/sql-reference/statements/create/dictionary.md b/docs/en/sql-reference/statements/create/dictionary.md index 3fe94e267e4..889669da5c8 100644 --- a/docs/en/sql-reference/statements/create/dictionary.md +++ b/docs/en/sql-reference/statements/create/dictionary.md @@ -12,10 +12,10 @@ Syntax: ``` sql CREATE DICTIONARY [IF NOT EXISTS] [db.]dictionary_name [ON CLUSTER cluster] ( - key1 type1 [DEFAULT|EXPRESSION expr1] [HIERARCHICAL|INJECTIVE|IS_OBJECT_ID], - key2 type2 [DEFAULT|EXPRESSION expr2] [HIERARCHICAL|INJECTIVE|IS_OBJECT_ID], - attr1 type2 [DEFAULT|EXPRESSION expr3], - attr2 type2 [DEFAULT|EXPRESSION expr4] + key1 type1 [DEFAULT|EXPRESSION expr1] [IS_OBJECT_ID], + key2 type2 [DEFAULT|EXPRESSION expr2] , + attr1 type2 [DEFAULT|EXPRESSION expr3] [HIERARCHICAL|INJECTIVE], + attr2 type2 [DEFAULT|EXPRESSION expr4] [HIERARCHICAL|INJECTIVE] ) PRIMARY KEY key1, key2 SOURCE(SOURCE_NAME([param1 value1 ... paramN valueN])) diff --git a/src/Dictionaries/DictionaryStructure.cpp b/src/Dictionaries/DictionaryStructure.cpp index 82ab58a8c61..21d43031204 100644 --- a/src/Dictionaries/DictionaryStructure.cpp +++ b/src/Dictionaries/DictionaryStructure.cpp @@ -286,7 +286,7 @@ std::vector DictionaryStructure::getAttributes( if (!inserted) throw Exception(ErrorCodes::BAD_ARGUMENTS, - "Dictionary attributes names must be unique. Attribute name ({}) is not unique", + "Dictionary attributes names must be unique. Attribute name {} is not unique", name); const auto type_string = config.getString(prefix + "type");