Fix off-by-one error for max_joined_block_rows

This commit is contained in:
vdimir 2024-01-08 11:02:17 +00:00
parent 8dad3f1b22
commit 631e16d8c3
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -1402,7 +1402,7 @@ NO_INLINE size_t joinRightColumns(
{
if constexpr (join_features.need_replication)
{
if (unlikely(current_offset > max_joined_block_rows))
if (unlikely(current_offset >= max_joined_block_rows))
{
added_columns.offsets_to_replicate->resize_assume_reserved(i);
added_columns.filter.resize_assume_reserved(i);