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 <[email protected]>
AuthorDate: Tue Jan 17 23:22:00 2023 +0800
[fix](struct-type) select of struct return wrong result (#16032)
Co-authored-by: cambyzju <[email protected]>
---
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: [email protected]
For additional commands, e-mail: [email protected]