ISSUES-4006 try fix bad integration test

This commit is contained in:
zhang2014 2020-08-17 13:14:02 +08:00
parent b11f4b45a0
commit 2cbc1df3ce

View File

@ -41,6 +41,7 @@ Pipe StorageMaterializeMySQL::read(
database->rethrowExceptionIfNeed();
NameSet column_names_set = NameSet(column_names.begin(), column_names.end());
auto lock = nested_storage->lockForShare(context.getCurrentQueryId(), context.getSettingsRef().lock_acquire_timeout);
const StorageMetadataPtr & nested_metadata = nested_storage->getInMemoryMetadataPtr();
Block nested_header = nested_metadata->getSampleBlock();