From 1ed32e47952b1e04c98ec04794cf1cc4bda05454 Mon Sep 17 00:00:00 2001 From: Vasily Nemkov Date: Thu, 16 Nov 2023 00:24:10 +0100 Subject: [PATCH] Update array.h --- clickhouse/columns/array.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clickhouse/columns/array.h b/clickhouse/columns/array.h index e8dc6124..f47853ba 100644 --- a/clickhouse/columns/array.h +++ b/clickhouse/columns/array.h @@ -249,7 +249,7 @@ class ColumnArrayT : public ColumnArray { if (index >= Size()) throw ValidationError("ColumnArray row index out of bounds: " + std::to_string(index) + ", max is " + std::to_string(Size())); - +It is actually not, b return ArrayValueView{typed_nested_data_, GetOffset(index), GetSize(index)}; } @@ -269,7 +269,6 @@ class ColumnArrayT : public ColumnArray { else { Append(std::make_move_iterator(std::begin(container)), std::make_move_iterator(std::end(container))); - container.clear(); } }