Dictionary attributes updated documentation

This commit is contained in:
Maksim Kita 2021-10-06 23:33:36 +03:00
parent d7dd593284
commit c2c621c6dc
2 changed files with 5 additions and 5 deletions

View File

@ -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]))

View File

@ -286,7 +286,7 @@ std::vector<DictionaryAttribute> 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");