This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 923346a38a8 [debug] Add more logs when encounter `unknown index
column` (#43846)
923346a38a8 is described below
commit 923346a38a8447d901390df507e21cb2e890b1fa
Author: bobhan1 <[email protected]>
AuthorDate: Fri Nov 15 16:14:13 2024 +0800
[debug] Add more logs when encounter `unknown index column` (#43846)
---
be/src/exec/tablet_info.cpp | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/be/src/exec/tablet_info.cpp b/be/src/exec/tablet_info.cpp
index f1c0ad60e06..acd923741eb 100644
--- a/be/src/exec/tablet_info.cpp
+++ b/be/src/exec/tablet_info.cpp
@@ -17,6 +17,7 @@
#include "exec/tablet_info.h"
+#include <butil/logging.h>
#include <gen_cpp/Descriptors_types.h>
#include <gen_cpp/Exprs_types.h>
#include <gen_cpp/Partitions_types.h>
@@ -180,6 +181,17 @@ Status OlapTableSchemaParam::init(const
POlapTableSchemaParam& pschema) {
auto it = slots_map.find(to_lower(pcolumn_desc.name()) + "+" +
data_type_str +
is_null_str);
if (it == std::end(slots_map)) {
+ std::string keys {};
+ for (const auto& [key, _] : slots_map) {
+ keys += fmt::format("{},", key);
+ }
+ LOG_EVERY_SECOND(WARNING) << fmt::format(
+ "[OlapTableSchemaParam::init(const
POlapTableSchemaParam& pschema)]: "
+ "unknown index column, column={}, type={},
data_type_str={}, "
+ "is_null_str={}, slots_map.keys()=[{}],
{}\npschema={}",
+ pcolumn_desc.name(), pcolumn_desc.type(),
data_type_str, is_null_str,
+ keys, debug_string(), pschema.ShortDebugString());
+
return Status::InternalError("unknown index column,
column={}, type={}",
pcolumn_desc.name(),
pcolumn_desc.type());
}
@@ -286,6 +298,18 @@ Status OlapTableSchemaParam::init(const
TOlapTableSchemaParam& tschema) {
auto it = slots_map.find(to_lower(tcolumn_desc.column_name) +
"+" + data_type_str +
is_null_str);
if (it == slots_map.end()) {
+ std::stringstream ss;
+ ss << tschema;
+ std::string keys {};
+ for (const auto& [key, _] : slots_map) {
+ keys += fmt::format("{},", key);
+ }
+ LOG_EVERY_SECOND(WARNING) << fmt::format(
+ "[OlapTableSchemaParam::init(const
TOlapTableSchemaParam& tschema)]: "
+ "unknown index column, column={}, type={},
data_type_str={}, "
+ "is_null_str={}, slots_map.keys()=[{}],
{}\ntschema={}",
+ tcolumn_desc.column_name,
tcolumn_desc.column_type.type, data_type_str,
+ is_null_str, keys, debug_string(), ss.str());
return Status::InternalError("unknown index column,
column={}, type={}",
tcolumn_desc.column_name,
tcolumn_desc.column_type.type);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]