From 3567a09360c6f42490779e9c94f8c72c42ec7390 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Tue, 31 Dec 2019 03:41:03 +0300 Subject: [PATCH] Update StorageTinyLog.cpp --- dbms/src/Storages/StorageTinyLog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbms/src/Storages/StorageTinyLog.cpp b/dbms/src/Storages/StorageTinyLog.cpp index e48727f5a76..5a447139599 100644 --- a/dbms/src/Storages/StorageTinyLog.cpp +++ b/dbms/src/Storages/StorageTinyLog.cpp @@ -177,6 +177,7 @@ Block TinyLogBlockInputStream::readImpl() return res; } + /// if there are no files in the folder, it means that the table is empty if (storage.disk->isDirectoryEmpty(storage.table_path)) return res;