This commit is contained in:
Kruglov Pavel 2024-08-23 14:19:42 +02:00 committed by GitHub
parent 5c5c803fad
commit ef7970d2c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -522,7 +522,7 @@ static DataTypePtr createJSON(const ASTPtr & arguments)
if (context->getSettingsRef().use_json_alias_for_old_object_type) if (context->getSettingsRef().use_json_alias_for_old_object_type)
{ {
if (arguments && !arguments->children.empty()) if (arguments && !arguments->children.empty())
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Experimental Object type doesn't support any arguments. If ypu want to use new JSON type, set setting allow_experimental_json_type = 1"); throw Exception(ErrorCodes::BAD_ARGUMENTS, "Experimental Object type doesn't support any arguments. If you want to use new JSON type, set setting allow_experimental_json_type = 1");
return std::make_shared<DataTypeObjectDeprecated>("JSON", false); return std::make_shared<DataTypeObjectDeprecated>("JSON", false);
} }