Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ if (ENABLE_TESTS)
dbms
clickhouse_common_config
clickhouse_common_zookeeper
ch_contrib::parquet
string_utils)

if (TARGET ch_contrib::simdjson)
Expand Down
18 changes: 18 additions & 0 deletions src/Processors/tests/gtest_assert_arrow_log_does_not_abort.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include <gtest/gtest.h>
#include <arrow/chunked_array.h>
#include <vector>
#include <arrow/util/logging.h>

using namespace DB;

TEST(ChunkedArray, ChunkedArrayWithZeroChunksShouldNotAbort)
{
std::vector<std::shared_ptr<::arrow::Array>> empty_chunks_vector;

EXPECT_ANY_THROW(::arrow::ChunkedArray{empty_chunks_vector});
}

TEST(ArrowLog, FatalLogShouldThrow)
{
EXPECT_ANY_THROW(::arrow::util::ArrowLog(__FILE__, __LINE__, ::arrow::util::ArrowLogLevel::ARROW_FATAL));
}