This is an automated email from the ASF dual-hosted git repository. airborne pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new d5bfe019f8e branch-3.0: [fix](index meta) make has_inverted_index function more robust #46364 (#46429) d5bfe019f8e is described below commit d5bfe019f8e5779cb76ce709b6a9f0065af154b5 Author: airborne12 <jiang...@selectdb.com> AuthorDate: Tue Jan 7 09:38:01 2025 +0800 branch-3.0: [fix](index meta) make has_inverted_index function more robust #46364 (#46429) 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 1db389eff81..960b94ff910 100644 --- a/be/src/olap/tablet_schema.h +++ b/be/src/olap/tablet_schema.h @@ -409,7 +409,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