From 157a3c006b8f9d3ea3f06452a1090acc972bb867 Mon Sep 17 00:00:00 2001 From: obdev Date: Tue, 15 Oct 2024 09:14:53 +0000 Subject: [PATCH] fix:post-build multivalue index report table not exists bug --- deps/oblib/src/lib/json_type/ob_json_parse.cpp | 2 +- src/rootserver/ddl_task/ob_fts_index_build_task.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/oblib/src/lib/json_type/ob_json_parse.cpp b/deps/oblib/src/lib/json_type/ob_json_parse.cpp index 5abe8cebef..0d14e4d5f8 100644 --- a/deps/oblib/src/lib/json_type/ob_json_parse.cpp +++ b/deps/oblib/src/lib/json_type/ob_json_parse.cpp @@ -36,7 +36,7 @@ int ObJsonParser::get_tree(ObIAllocator *allocator, const ObString &text, ObJson if (OB_FAIL(parse_json_text(allocator, text.ptr(), text.length(), syntaxerr, &offset, j_tree, parse_flag, max_depth_config))) { - LOG_WARN("fail to parse json text", K(ret), K(text), KCSTRING(syntaxerr)); + LOG_WARN("fail to parse json text", K(ret), K(text), K(offset), KCSTRING(syntaxerr)); } return ret; diff --git a/src/rootserver/ddl_task/ob_fts_index_build_task.cpp b/src/rootserver/ddl_task/ob_fts_index_build_task.cpp index 72a84194ad..af87c8ec07 100644 --- a/src/rootserver/ddl_task/ob_fts_index_build_task.cpp +++ b/src/rootserver/ddl_task/ob_fts_index_build_task.cpp @@ -112,7 +112,7 @@ int ObFtsIndexBuildTask::init( tenant_id_ = tenant_id; task_id_ = task_id; schema_version_ = schema_version; - parallelism_ = parallelism; + parallelism_ = std::max(parallelism, 1L); consumer_group_id_ = consumer_group_id; parent_task_id_ = parent_task_id; if (snapshot_version > 0) { @@ -122,6 +122,7 @@ int ObFtsIndexBuildTask::init( target_object_id_ = index_schema->get_table_id(); index_table_id_ = index_schema->get_table_id(); create_index_arg_.exec_tenant_id_ = tenant_id; + create_index_arg_.parallelism_ = parallelism_; if (index_schema->is_rowkey_doc_id()) { rowkey_doc_aux_table_id_ = index_table_id_; } else if (index_schema->is_fts_index_aux()) {