Skip to content

Commit

Permalink
[UT] Fix ASAN compile error and unstable UT (StarRocks#55923)
Browse files Browse the repository at this point in the history
Signed-off-by: stdpain <[email protected]>
  • Loading branch information
stdpain authored and wanyou committed Feb 17, 2025
1 parent 05035ad commit 98b810e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class AggregateStreamingSinkOperator : public Operator {
AggrAutoState _auto_state{};
AggrAutoContext _auto_context;
LimitedMemAggState _limited_mem_state;
DECLARE_ONCE_DETECTOR(_set_finishing_once);
};

class AggregateStreamingSinkOperatorFactory final : public OperatorFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ set topn_filter_back_pressure_mode='2';
set enable_profile='true';
-- result:
-- !result
[UC]select t0.c1, repeat('x', t0.c1+t1.c1) as a, repeat('y',t1.c0 + t1.c0) as b from t0 join[broadcast] t1 on t0.c0 = t1.c0 order by 1 limit 10;
set enable_async_profile=false;
-- result:
-- !result
[UC]select t0.c1, repeat('x', t0.c1+t1.c1) as a, repeat('y',t1.c0 + t1.c0) as b from t0 join[broadcast] t1 on t0.c0 = t1.c0 order by 1 limit 10;
-- result:
0 xxxxxxx yy
0 xxxxxxxxx yy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ insert into t0 select t0.* from t0, Table(generate_series(1,10));
insert into t1 select c0, c1 from Table(generate_series(1,10000)) ta(c0), Table(generate_series(1,10)) tb(c1);
set topn_filter_back_pressure_mode='2';
set enable_profile='true';
[UC]select t0.c1, repeat('x', t0.c1+t1.c1) as a, repeat('y',t1.c0 + t1.c0) as b from t0 join[broadcast] t1 on t0.c0 = t1.c0 order by 1 limit 10;
set enable_async_profile=false;
[UC]select t0.c1, repeat('x', t0.c1+t1.c1) as a, repeat('y',t1.c0 + t1.c0) as b from t0 join[broadcast] t1 on t0.c0 = t1.c0 order by 1 limit 10;
create table profile_table properties("replication_num"="1") as select line from table(unnest(split(get_query_profile(last_query_id()),"\n"))) t(line);
select assert_true(count(1)>0) from profile_table where line like '%TopnRuntimeFilter%';

0 comments on commit 98b810e

Please sign in to comment.