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

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 5989c2b0352 [branch-30](ut) fix window_funnel UT failure (#48724)
5989c2b0352 is described below

commit 5989c2b0352c2631cd32974c41d32e379f1b26a9
Author: zhangstar333 <zhangs...@selectdb.com>
AuthorDate: Thu Mar 6 12:25:05 2025 +0800

    [branch-30](ut) fix window_funnel UT failure (#48724)
    
    ### What problem does this PR solve?
    Problem Summary:
    fix window_funnel UT failure
    ### Release note
---
 be/test/vec/aggregate_functions/vec_window_funnel_test.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/be/test/vec/aggregate_functions/vec_window_funnel_test.cpp 
b/be/test/vec/aggregate_functions/vec_window_funnel_test.cpp
index f0c93c4beab..96a08421a8d 100644
--- a/be/test/vec/aggregate_functions/vec_window_funnel_test.cpp
+++ b/be/test/vec/aggregate_functions/vec_window_funnel_test.cpp
@@ -148,10 +148,15 @@ TEST_F(VWindowFunnelTest, testSerialize) {
         agg_function->add(place, column, i, nullptr);
     }
 
+    ColumnVector<Int32> column_result;
+    agg_function->insert_result_into(place, column_result);
+    EXPECT_EQ(column_result.get_data()[0], 3);
+
     ColumnString buf;
     VectorBufferWriter buf_writer(buf);
     agg_function->serialize(place, buf_writer);
     buf_writer.commit();
+    agg_function->destroy(place);
 
     std::unique_ptr<char[]> memory2(new char[agg_function->size_of_data()]);
     AggregateDataPtr place2 = memory2.get();
@@ -160,11 +165,6 @@ TEST_F(VWindowFunnelTest, testSerialize) {
     VectorBufferReader buf_reader(buf.get_data_at(0));
     agg_function->deserialize(place2, buf_reader, nullptr);
 
-    ColumnVector<Int32> column_result;
-    agg_function->insert_result_into(place, column_result);
-    EXPECT_EQ(column_result.get_data()[0], 3);
-    agg_function->destroy(place);
-
     ColumnVector<Int32> column_result2;
     agg_function->insert_result_into(place2, column_result2);
     EXPECT_EQ(column_result2.get_data()[0], 3);


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

Reply via email to