We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d326def commit 9777b29Copy full SHA for 9777b29
src/Storages/ObjectStorage/StorageObjectStorageSource.cpp
@@ -238,8 +238,10 @@ void StorageObjectStorageSource::lazyInitialize()
238
239
Chunk StorageObjectStorageSource::generate()
240
{
241
+ lazyInitialize();
242
+
243
// Virtual-only mode: no physical columns requested.
- if (auto object_info = file_iterator->next(0);
244
+ if (auto object_info = reader.getObjectInfo();
245
read_from_format_info.format_header.columns() == 0 &&
246
object_info && object_info->metadata.has_value() &&
247
object_info->metadata->attributes.contains("record_count"))
@@ -304,8 +306,6 @@ Chunk StorageObjectStorageSource::generate()
304
306
}
305
307
308
- lazyInitialize();
-
309
while (true)
310
311
if (isCancelled() || !reader)
0 commit comments