From 60a90148442ffeaf3b78e8c337970d340a5bdd07 Mon Sep 17 00:00:00 2001 From: ywqzzy <592838129@qq.com> Date: Fri, 21 Apr 2023 02:15:00 +0000 Subject: [PATCH 1/2] fix --- dbms/src/Flash/Coprocessor/DAGStorageInterpreter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbms/src/Flash/Coprocessor/DAGStorageInterpreter.cpp b/dbms/src/Flash/Coprocessor/DAGStorageInterpreter.cpp index f06cce5d272..6561f5af9eb 100644 --- a/dbms/src/Flash/Coprocessor/DAGStorageInterpreter.cpp +++ b/dbms/src/Flash/Coprocessor/DAGStorageInterpreter.cpp @@ -492,8 +492,7 @@ void DAGStorageInterpreter::executeCastAfterTableScan( auto [has_cast, extra_cast] = addExtraCastsAfterTs(*analyzer, is_need_add_cast_column, table_scan); if (has_cast) { - auto source_num = group_builder.group.size(); - assert(remote_read_sources_start_index <= source_num); + assert(remote_read_sources_start_index <= group_builder.group.size()); size_t i = 0; // local sources while (i < remote_read_sources_start_index) From d08a2b93add0a33a71fa33cc5b3d6a049fc9f142 Mon Sep 17 00:00:00 2001 From: ywqzzy <592838129@qq.com> Date: Fri, 21 Apr 2023 18:56:52 +0800 Subject: [PATCH 2/2] rm test --- tests/tidb-ci/fullstack-test-dt/issue_1425.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tidb-ci/fullstack-test-dt/issue_1425.test b/tests/tidb-ci/fullstack-test-dt/issue_1425.test index 994e7d8abeb..245ab34bb27 100644 --- a/tests/tidb-ci/fullstack-test-dt/issue_1425.test +++ b/tests/tidb-ci/fullstack-test-dt/issue_1425.test @@ -24,7 +24,7 @@ func> wait_table test t # note: ref to https://github.com/pingcap/tiflash/issues/1682, # The precision of tiflash results is different from that of tidb, which is a compatibility issue -mysql> use test; set session tidb_isolation_read_engines='tiflash'; select * from t where value = 54/28; +# mysql> use test; set session tidb_isolation_read_engines='tiflash'; select * from t where value = 54/28; mysql> use test; set session tidb_isolation_read_engines='tiflash'; select * from t where value = c1/c2; +------+--------+------+------+ | id | value | c1 | c2 |