[Bug]: the order of sql record in statement_info table is not deterministic for the same sql execution order #10279
Labels
kind/bug
Something isn't working
needs-triage
severity/s1
High impact: Logical errors or data errors that must occur
Milestone
Is there an existing issue for the same bug?
Environment
Actual Behavior
for some cases, the same query from the statement_info can get different result for the same sql execution. e.g.
2023-06-28 01:43:56 ERROR RSRow:65 - The value of [row:2,column:0] does not equal with each other,one is [insert into __mo_t1 values(1)],but the other is [select * from __mo_t1]
2023-06-28 01:43:56 ERROR Executor:159 - [/runner/_work/matrixone/matrixone/matrixone/test/distributed/cases/sql_source_type/sql_source_type.sql][row:18][select statement, sql_source_type from system.statement_info where account="bvt_sql_source_type" and status != 'Running' and statement not like '%mo_ctl%' order by request_at desc limit 3;] was executed failed, con[id=0, user=dump, ***
2023-06-28 01:43:56 ERROR Executor:161 - [EXPECT RESULT]:
statement sql_source_type
show tables cloud_user_sql
use system cloud_nonuser_sql
insert into __mo_t1 values(1) external_sql
2023-06-28 01:43:56 ERROR Executor:162 - [ACTUAL RESULT]:
statement sql_source_type
show tables cloud_user_sql
use system cloud_nonuser_sql
select * from __mo_t1 external_sql
2023-06-28 01:43:56 INFO Executor:241 - The script file[/runner/_work/matrixone/matrixone/matrixone/test/distributed/cases/sql_source_type/sql_source_type.sql] has been executed, and cost: 16.442s, total:12, success:11,
and the sql execution order is :
create database if not exists ssb;
use ssb;
/* cloud_user /drop table if exists __mo_t1;
/ cloud_nonuser / create table __mo_t1(a int);
insert into __mo_t1 values(1);
select * from __mo_t1;
/ cloud_nonuser / use system;/ cloud_user */show tables;
Expected Behavior
No response
Steps to Reproduce
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: