This is an automated email from the ASF dual-hosted git repository.
mrhhsg pushed a commit to branch nested_column_prune
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/nested_column_prune by this
push:
new 25009bd5158 fix missing column name
25009bd5158 is described below
commit 25009bd5158895e173e1a6019b6013f3978b4a01
Author: Hu Shenggang <[email protected]>
AuthorDate: Wed Oct 22 22:47:59 2025 +0800
fix missing column name
---
be/src/olap/rowset/segment_v2/segment.cpp | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/be/src/olap/rowset/segment_v2/segment.cpp
b/be/src/olap/rowset/segment_v2/segment.cpp
index 60062a772e7..1c9f40a1c38 100644
--- a/be/src/olap/rowset/segment_v2/segment.cpp
+++ b/be/src/olap/rowset/segment_v2/segment.cpp
@@ -24,6 +24,7 @@
#include <cstring>
#include <memory>
+#include <sstream>
#include <utility>
#include "cloud/config.h"
@@ -774,7 +775,20 @@ Status Segment::new_column_iterator(const TabletColumn&
tablet_column,
const auto& predicate_access_paths =
opt->predicate_access_paths.contains(unique_id)
?
opt->predicate_access_paths.at(unique_id)
: TColumnAccessPaths
{};
- RETURN_IF_ERROR((*iter)->set_access_paths(all_access_paths,
predicate_access_paths));
+
+ // set column name to apply access paths.
+ (*iter)->set_column_name(tablet_column.name());
+ auto st = (*iter)->set_access_paths(all_access_paths,
predicate_access_paths);
+ if (!st.ok()) {
+ std::stringstream ss;
+ all_access_paths.printTo(ss);
+ std::stringstream ss2;
+ predicate_access_paths.printTo(ss2);
+ LOG(WARNING) << "set access paths failed, column_uid=" <<
unique_id
+ << ", all_access_paths=" << ss.str()
+ << ", predicate_access_paths=" << ss2.str();
+ return st;
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]