This is an automated email from the ASF dual-hosted git repository.

lihaopeng 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 17a32f5469d [Refactor](pipeline) remove unless member in 
schema_scan_operator.cpp (#48588)
17a32f5469d is described below

commit 17a32f5469da48f4607c4e3bb64f1e50402c6a60
Author: HappenLee <happen...@selectdb.com>
AuthorDate: Tue Mar 4 12:07:36 2025 +0800

    [Refactor](pipeline) remove unless member in schema_scan_operator.cpp 
(#48588)
---
 be/src/pipeline/exec/schema_scan_operator.cpp | 7 ++++---
 be/src/pipeline/exec/schema_scan_operator.h   | 2 --
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/be/src/pipeline/exec/schema_scan_operator.cpp 
b/be/src/pipeline/exec/schema_scan_operator.cpp
index d22943b740a..eb617cea69a 100644
--- a/be/src/pipeline/exec/schema_scan_operator.cpp
+++ b/be/src/pipeline/exec/schema_scan_operator.cpp
@@ -155,13 +155,14 @@ Status SchemaScanOperatorX::prepare(RuntimeState* state) {
     }
 
     // new one scanner
-    _schema_scanner = SchemaScanner::create(schema_table->schema_table_type());
+    auto temp_schema_scanner = 
SchemaScanner::create(schema_table->schema_table_type());
 
-    if (nullptr == _schema_scanner) {
+    if (nullptr == temp_schema_scanner) {
         return Status::InternalError("schema scanner get nullptr pointer.");
     }
 
-    const std::vector<SchemaScanner::ColumnDesc>& 
columns_desc(_schema_scanner->get_column_desc());
+    const std::vector<SchemaScanner::ColumnDesc>& columns_desc(
+            temp_schema_scanner->get_column_desc());
 
     // if src columns size is zero, it's the dummy slots.
     if (columns_desc.empty()) {
diff --git a/be/src/pipeline/exec/schema_scan_operator.h 
b/be/src/pipeline/exec/schema_scan_operator.h
index 594901e812c..6846d9b59af 100644
--- a/be/src/pipeline/exec/schema_scan_operator.h
+++ b/be/src/pipeline/exec/schema_scan_operator.h
@@ -85,8 +85,6 @@ private:
     int _tuple_idx;
     // slot num need to fill in and return
     int _slot_num;
-
-    std::unique_ptr<SchemaScanner> _schema_scanner;
 };
 
 #include "common/compile_check_end.h"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to