Merge pull request #38306 from ClickHouse/Avogar-patch-1

Fix misleading error message while s3 schema inference
This commit is contained in:
Kruglov Pavel 2022-06-22 17:24:59 +02:00 committed by GitHub
commit a8757881da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1151,7 +1151,7 @@ ColumnsDescription StorageS3::getTableStructureFromDataImpl(
auto file_iterator
= createFileIterator(s3_configuration, {s3_configuration.uri.key}, is_key_with_globs, distributed_processing, ctx, nullptr, {});
ReadBufferIterator read_buffer_iterator = [&, first = false]() mutable -> std::unique_ptr<ReadBuffer>
ReadBufferIterator read_buffer_iterator = [&, first = true]() mutable -> std::unique_ptr<ReadBuffer>
{
auto key = (*file_iterator)();