From 89f51e14fa8b36d4f7edcf6b67ec44fc28d239eb Mon Sep 17 00:00:00 2001 From: japinli Date: Mon, 29 Jan 2024 09:58:00 +0800 Subject: [PATCH] Fix a server crash When chunk_group_row_limit is bigger than 110000, there is a crash caused by ReadStripeNextVector(). --- columnar/src/backend/columnar/columnar_reader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/columnar/src/backend/columnar/columnar_reader.c b/columnar/src/backend/columnar/columnar_reader.c index b24e4d1..b23829f 100644 --- a/columnar/src/backend/columnar/columnar_reader.c +++ b/columnar/src/backend/columnar/columnar_reader.c @@ -2162,8 +2162,8 @@ ReadStripeNextVector(StripeReadState *stripeReadState, Datum *columnValues, if (*newVectorSize == 0) continue; } - - stripeReadState->currentRow += stripeReadState->chunkGroupReadState->rowCount; + else + stripeReadState->currentRow += stripeReadState->chunkGroupReadState->rowCount; return true; } @@ -2260,4 +2260,4 @@ ReadChunkGroupNextVector(ChunkGroupReadState *chunkGroupReadState, Datum *column } return true; -} \ No newline at end of file +}