This is an automated email from the ASF dual-hosted git repository. airborne pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 03a3f37cc4e [fix](index meta) make has_inverted_index function more robust #46364 (#46428) 03a3f37cc4e is described below commit 03a3f37cc4e1e4cdddf080fefa4ac0a8f440edeb Author: airborne12 <jiang...@selectdb.com> AuthorDate: Tue Jan 7 09:36:22 2025 +0800 [fix](index meta) make has_inverted_index function more robust #46364 (#46428) cherry pick from #46364 --- be/src/olap/tablet_schema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/olap/tablet_schema.h b/be/src/olap/tablet_schema.h index cb251d9f140..029401468dc 100644 --- a/be/src/olap/tablet_schema.h +++ b/be/src/olap/tablet_schema.h @@ -363,7 +363,7 @@ public: for (const auto& index : _indexes) { if (index.index_type() == IndexType::INVERTED) { //if index_id == -1, ignore it. - if (index.col_unique_ids()[0] >= 0) { + if (!index.col_unique_ids().empty() && index.col_unique_ids()[0] >= 0) { return true; } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org