One more fixed

This commit is contained in:
stavrolia 2019-05-28 21:32:14 +03:00
parent aa0e227288
commit 0a5fb04b56

View File

@ -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);
}
}