You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: bvt/result_count failed: 2 more rows result #16530
2024-05-30 17:53:45 INFO Executor:37 - Start to execute the script file[/home/runner/_work/matrixone/matrixone/matrixone/test/distributed/cases/zz_statement_query_type/result_count.sql] now, and it will take a few moment,pleas wait......
2024-05-30 17:53:45 ERROR RSRow:83 - The value of [row:49,column:0] does not equal with each other,one is [commit],but the other is [create database db1]
2024-05-30 17:53:45 ERROR Executor:199 - [/home/runner/_work/matrixone/matrixone/matrixone/test/distributed/cases/zz_statement_query_type/result_count.sql][row:11][select statement, result_count from statement_info where account="bvt_result_count" and statement not like '%mo_ctl%' and length(statement) > 0 and status != 'Running' and aggr_count < 1 order by request_at desc limit 50;] was executed failed, con[id=0, user=dump, ***
[/home/runner/work/matrixone/matrixone/upstream/test/distributed/cases/zz_statement_query_type/statement_query_type_1.sql] SQL: select statement,query_type,sql_source_type from system.statement_info where account="bvt_query_type_part1" and sql_source_type="external_sql" and status != "Running" and statement not like '%mo_ctl%' and aggr_count <1 order by request_at desc limit 96;
Activity
xzxiong commentedon May 31, 2024
main repro https://github.com/matrixorigin/matrixone/actions/runs/9301220736?pr=16474
xzxiong commentedon May 31, 2024
root cause: case 设计问题,多出来的 2行都是 insert 语句,按聚合逻辑是有可能被聚合,也有可能不被聚合 —— 结果不稳定。
xzxiong commentedon May 31, 2024
为了保证 不被聚合,有以下几种方式:
/*cloud_user*/保证一定不会被聚合。-- @session:id=....隔离到不同的 session 下。xzxiong commentedon May 31, 2024
采用 hint
/*cloud_user*/解决问题xzxiong commentedon May 31, 2024
ref: #14836
daviszhen commentedon May 31, 2024
https://github.com/matrixorigin/ci-test/actions/runs/9319469691/job/25654986820
xzxiong commentedon May 31, 2024
我仔细看了下,整个 result_count 的case 很难控制: statement_info 聚合逻辑 V.S. 预期的query history
我准备通过一下方式解决:
在解决前,可能需要先重试该case
xzxiong commentedon Jun 6, 2024
下个迭代
xzxiong commentedon Jun 11, 2024
Not plan yet
xzxiong commentedon Jun 14, 2024
Not plan yet
xzxiong commentedon Jun 18, 2024
Not plan yet
xzxiong commentedon Jul 10, 2024
repro: https://github.com/matrixorigin/matrixone/actions/runs/9870656005/job/27257000560?pr=17454

xzxiong commentedon Jul 10, 2024
在 1.3.0 中,计划支持 mo_ctl 可以关闭当前 session 的 statement的聚合逻辑 ==> 保障 bvt 的验证,不用考虑聚合的行为来编辑case
xzxiong commentedon Aug 1, 2024
总结
set session disable_agg_statement = on;(default off) 可关闭当前 session 的 statement 的aggr