You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by xu...@apache.org on 2023/01/17 15:22:09 UTC

[doris] branch struct-type updated: [fix](struct-type) select of struct return wrong result (#16032)

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

xuyang pushed a commit to branch struct-type
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/struct-type by this push:
     new b6276d49fe [fix](struct-type) select of struct return wrong result  (#16032)
b6276d49fe is described below

commit b6276d49fe1520ad5d04dfd82a3ce05311971e2a
Author: camby <10...@qq.com>
AuthorDate: Tue Jan 17 23:22:00 2023 +0800

    [fix](struct-type) select of struct return wrong result  (#16032)
    
    Co-authored-by: cambyzju <zh...@baidu.com>
---
 be/src/vec/columns/column_struct.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/be/src/vec/columns/column_struct.h b/be/src/vec/columns/column_struct.h
index 393b2c275f..627a6736f2 100644
--- a/be/src/vec/columns/column_struct.h
+++ b/be/src/vec/columns/column_struct.h
@@ -216,6 +216,12 @@ public:
     const ColumnPtr& get_column_ptr(size_t idx) const { return columns[idx]; }
     ColumnPtr& get_column_ptr(size_t idx) { return columns[idx]; }
 
+    void clear() override {
+        for (auto col : columns) {
+            col->clear();
+        }
+    }
+
 private:
     int compare_at_impl(size_t n, size_t m, const IColumn& rhs, int nan_direction_hint) const;
 


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