Update AsynchronousReadIndirectBufferFromRemoteFS.cpp

This commit is contained in:
Kseniia Sumarokova 2021-11-08 22:12:04 +03:00 committed by GitHub
parent 1167e5aae8
commit c458f73138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ String AsynchronousReadIndirectBufferFromRemoteFS::getFileName() const
bool AsynchronousReadIndirectBufferFromRemoteFS::hasPendingDataToRead()
{
/**
* Note: read_until_position here can be zero only for non-MergeTree tables.
* Note: read_until_position here can be std::nullopt only for non-MergeTree tables.
* For mergeTree tables it must be guaranteed that setReadUntilPosition() or
* setReadUntilEnd() is called before any read or prefetch.
* setReadUntilEnd() always sets read_until_position to file size.