mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
One more fixed
This commit is contained in:
parent
aa0e227288
commit
0a5fb04b56
@ -534,8 +534,9 @@ BlockIO InterpreterCreateQuery::createTable(ASTCreateQuery & create)
|
||||
if (const auto * current_type_ptr = typeid_cast<const DataTypeLowCardinality *>(name_and_type_pair.type.get()))
|
||||
{
|
||||
if (!isStringOrFixedString(*removeNullable(current_type_ptr->getDictionaryType())))
|
||||
throw Exception("The type " + current_type_ptr->getName() + " " + " is not allowed for making low cardinality in creating table by default, because it could increase time of join and memory consumption. "
|
||||
+ "Low cardinality is usefull only for types String, Nullable(String), FixedString and Nullable(FixedString). Could be allowed for others by setting allow_suspicious_low_cardinality_types.",
|
||||
throw Exception("The type " + current_type_ptr->getName() + " is not allowed for making low cardinality in creating table by default, because it could increase time of join and memory consumption. "
|
||||
"Low cardinality is usefull only for types String, Nullable(String), FixedString and Nullable(FixedString). "
|
||||
"Could be allowed for others by setting allow_suspicious_low_cardinality_types.",
|
||||
ErrorCodes::SUSPICIOUS_TYPE_FOR_LOW_CARDINALITY);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user