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) 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 |