From 90b6a591e536fb4c0cdb991482a7b961df18e61c Mon Sep 17 00:00:00 2001 From: Anton Popov Date: Sat, 24 Jul 2021 03:55:50 +0300 Subject: [PATCH] fix reading from distributed --- src/Storages/StorageDistributed.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Storages/StorageDistributed.cpp b/src/Storages/StorageDistributed.cpp index cf9354325dd..018f40f6389 100644 --- a/src/Storages/StorageDistributed.cpp +++ b/src/Storages/StorageDistributed.cpp @@ -563,11 +563,11 @@ QueryProcessingStage::Enum StorageDistributed::getQueryProcessingStage( StorageSnapshotPtr StorageDistributed::getStorageSnapshot(const StorageMetadataPtr & metadata_snapshot) const { + auto snapshot_data = std::make_unique(); auto names_of_objects = getNamesOfObjectColumns(metadata_snapshot->getColumns().getAllPhysical()); if (names_of_objects.empty()) - return std::make_shared(*this, metadata_snapshot); + return std::make_shared(*this, metadata_snapshot, ColumnsDescription{}, std::move(snapshot_data)); - auto snapshot_data = std::make_unique(); snapshot_data->objects_by_shard = getExtendedObjectsOfRemoteTables( *getCluster(), StorageID{remote_database, remote_table},