mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
fix style
This commit is contained in:
parent
8faf2ea91e
commit
341f93d1b8
@ -9,9 +9,11 @@
|
||||
|
||||
#include <queue>
|
||||
|
||||
namespace parquet {
|
||||
namespace parquet
|
||||
{
|
||||
class ParquetFileReader;
|
||||
class FileMetaData; }
|
||||
class FileMetaData;
|
||||
}
|
||||
namespace parquet::arrow { class FileReader; }
|
||||
namespace arrow { class Buffer; class RecordBatchReader;}
|
||||
namespace arrow::io { class RandomAccessFile; }
|
||||
|
@ -173,13 +173,17 @@ struct ReadBufferFromHDFS::ReadBufferFromHDFSImpl : public BufferWithOwnMemory<S
|
||||
|
||||
if (bytes_read < 0)
|
||||
{
|
||||
throw Exception(ErrorCodes::HDFS_ERROR,
|
||||
"Fail to read from HDFS: {}, file path: {}. Error: {}",
|
||||
hdfs_uri, hdfs_file_path, std::string(hdfsGetLastError()));
|
||||
throw Exception(
|
||||
ErrorCodes::HDFS_ERROR,
|
||||
"Fail to read from HDFS: {}, file path: {}. Error: {}",
|
||||
hdfs_uri,
|
||||
hdfs_file_path,
|
||||
std::string(hdfsGetLastError()));
|
||||
}
|
||||
if (bytes_read && read_settings.remote_throttler)
|
||||
{
|
||||
read_settings.remote_throttler->add(bytes_read, ProfileEvents::RemoteReadThrottlerBytes, ProfileEvents::RemoteReadThrottlerSleepMicroseconds);
|
||||
read_settings.remote_throttler->add(
|
||||
bytes_read, ProfileEvents::RemoteReadThrottlerBytes, ProfileEvents::RemoteReadThrottlerSleepMicroseconds);
|
||||
}
|
||||
return bytes_read;
|
||||
}
|
||||
@ -269,10 +273,12 @@ String ReadBufferFromHDFS::getFileName() const
|
||||
{
|
||||
return impl->hdfs_file_path;
|
||||
}
|
||||
size_t ReadBufferFromHDFS::readBigAt(char * buffer, size_t size, size_t offset, const std::function<bool(size_t)> & ) const
|
||||
|
||||
size_t ReadBufferFromHDFS::readBigAt(char * buffer, size_t size, size_t offset, const std::function<bool(size_t)> &) const
|
||||
{
|
||||
return impl->pread(buffer, size, offset);
|
||||
}
|
||||
|
||||
bool ReadBufferFromHDFS::supportsReadAt()
|
||||
{
|
||||
return true;
|
||||
|
@ -47,6 +47,7 @@ public:
|
||||
String getFileName() const override;
|
||||
|
||||
size_t readBigAt(char * buffer, size_t size, size_t offset, const std::function<bool(size_t)> & function) const override;
|
||||
|
||||
bool supportsReadAt() override;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user