fix ArrowColumnToCHColumn

This commit is contained in:
taiyang-li 2021-11-30 10:49:57 +08:00
parent 6922f09ea3
commit ad6ba24efd
6 changed files with 9 additions and 6 deletions

2
contrib/base64 vendored

@ -1 +1 @@
Subproject commit 9499e0c4945589973b9ea1bc927377cfbc84aa46
Subproject commit af9b331f2b4f30b41c70f3a571ff904a8251c1d3

2
contrib/libhdfs3 vendored

@ -1 +1 @@
Subproject commit 9194af44588633c1b2dae44bf945804401ff883e
Subproject commit a8c37ee001af1ae88e5dfa637ae5b31b087c96d3

2
contrib/replxx vendored

@ -1 +1 @@
Subproject commit f019cba7ea1bcd1b4feb7826f28ed57fb581b04c
Subproject commit 68410ac01dfb4f09ea76120ac5a2cecda3943aaf

2
contrib/sysroot vendored

@ -1 +1 @@
Subproject commit 4ef348b7f30f2ad5b02b266268b3c948e51ad457
Subproject commit 1a64956aa7c280448be6526251bb2b8e6d380ab1

View File

@ -473,7 +473,7 @@ RemoteReadBufferCache::createReader(const RemoteFileMetadata & remote_file_meta,
// If something is wrong on startup, rollback to read from the original ReadBuffer
if (!isInitialized())
{
LOG_ERROR(log, "RemoteReadBufferCache not initialized yet");
LOG_ERROR(log, "RemoteReadBufferCache has not been initialized");
return {nullptr, RemoteReadBufferCacheError::NOT_INIT};
}

View File

@ -530,7 +530,10 @@ void ArrowColumnToCHColumn::arrowTableToCHChunk(Chunk & res, std::shared_ptr<arr
void ArrowColumnToCHColumn::arrowColumnsToCHChunk(Chunk & res, NameToColumnPtr & name_to_column_ptr)
{
Columns columns_list;
UInt64 num_rows = 0;
if (name_to_column_ptr.empty())
return;
UInt64 num_rows = name_to_column_ptr.begin()->second->length();
columns_list.reserve(header.rows());