You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/06/12 09:03:54 UTC

[doris] branch master updated: [fix](columnstring) fix bug of columnstring prefetch (#20698)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d47c6a871 [fix](columnstring) fix bug of columnstring prefetch (#20698)
9d47c6a871 is described below

commit 9d47c6a871cf6ce48f7e1cc7a6b4581f9f1cee2a
Author: TengJianPing <18...@users.noreply.github.com>
AuthorDate: Mon Jun 12 17:03:44 2023 +0800

    [fix](columnstring) fix bug of columnstring prefetch (#20698)
---
 be/src/vec/columns/column_string.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/columns/column_string.cpp b/be/src/vec/columns/column_string.cpp
index 81ee29a70f..e5bab2899f 100644
--- a/be/src/vec/columns/column_string.cpp
+++ b/be/src/vec/columns/column_string.cpp
@@ -113,7 +113,7 @@ void ColumnString::insert_indices_from(const IColumn& src, const int* indices_be
         if (*x == -1) {
             ColumnString::insert_default();
         } else {
-            if (x + IColumn::PREFETCH_STEP < indices_end) {
+            if (x + IColumn::PREFETCH_STEP < indices_end && (-1 != x[IColumn::PREFETCH_STEP])) {
                 ColumnString::prefetch(src, *(x + IColumn::PREFETCH_STEP));
             }
             ColumnString::insert_from(src, *x);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org