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