We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518b369 commit 3c127a5Copy full SHA for 3c127a5
clickhouse/columns/array.cpp
@@ -45,7 +45,7 @@ ColumnRef ColumnArray::GetAsColumn(size_t n) const {
45
}
46
47
ColumnRef ColumnArray::Slice(size_t begin, size_t size) const {
48
- if (size && size + begin >= Size())
+ if (size && begin + size > Size())
49
throw ValidationError("Slice indexes are out of bounds");
50
51
auto result = std::make_shared<ColumnArray>(data_->CloneEmpty(), DoNotCloneDataColumnTag{});
0 commit comments