From 71d49d82418328f341d125a3c7b4cee1c8efd20d Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 28 Aug 2024 19:12:28 +0800 Subject: [PATCH] fix: invalid input --- source/common/src/tdataformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/tdataformat.c b/source/common/src/tdataformat.c index 3bf0de0bdc..6f4f4a6162 100644 --- a/source/common/src/tdataformat.c +++ b/source/common/src/tdataformat.c @@ -3328,7 +3328,7 @@ static int32_t tColDataMerge(SArray **colArr) { SRowKey lastKey; for (int32_t i = 0; i < numRows; i++) { SRowKey key; - tColDataArrGetRowKey((SColData *)TARRAY_DATA(dst), taosArrayGetSize(dst), i, &key); + tColDataArrGetRowKey((SColData *)TARRAY_DATA(src), taosArrayGetSize(src), i, &key); if (i == 0 || tRowKeyCompare(&key, &lastKey) != 0) { // append new row for (int32_t j = 0; j < taosArrayGetSize(src); j++) {