Fix crash in StorageObjectStorageQueue

This commit is contained in:
Kseniia Sumarokova 2024-12-13 14:14:33 +01:00 committed by GitHub
parent b3dd5431ba
commit 7592f9d2db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,8 @@ StorageObjectStorageQueue::StorageObjectStorageQueue(
storage_metadata.setColumns(columns); storage_metadata.setColumns(columns);
storage_metadata.setConstraints(constraints_); storage_metadata.setConstraints(constraints_);
storage_metadata.setComment(comment); storage_metadata.setComment(comment);
storage_metadata.settings_changes = engine_args->settings->ptr(); if (engine_args->settings)
storage_metadata.settings_changes = engine_args->settings->ptr();
setVirtuals(VirtualColumnUtils::getVirtualsForFileLikeStorage(storage_metadata.columns, context_)); setVirtuals(VirtualColumnUtils::getVirtualsForFileLikeStorage(storage_metadata.columns, context_));
setInMemoryMetadata(storage_metadata); setInMemoryMetadata(storage_metadata);