Update InterpreterCreateQuery.cpp

This commit is contained in:
Alexander Tokmakov 2024-05-21 21:04:28 +02:00 committed by GitHub
parent 0ebca16da0
commit c9d29213d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1493,7 +1493,7 @@ bool InterpreterCreateQuery::doCreateTable(ASTCreateQuery & create,
validateVirtualColumns(*res);
if (!res->supportsDynamicSubcolumns() && hasDynamicSubcolumns(res->getInMemoryMetadataPtr()->getColumns()))
if (!res->supportsDynamicSubcolumns() && hasDynamicSubcolumns(res->getInMemoryMetadataPtr()->getColumns()) && mode <= LoadingStrictnessLevel::CREATE)
{
throw Exception(ErrorCodes::ILLEGAL_COLUMN,
"Cannot create table with column of type Object, "