From c5c1d65ab398d884879b464853dc8695f66544af Mon Sep 17 00:00:00 2001 From: kailixu Date: Sun, 11 Jul 2021 15:51:20 +0000 Subject: [PATCH] restore and don't perform the ratio check --- src/client/inc/tsclient.h | 1 - src/client/src/tscParseInsert.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/inc/tsclient.h b/src/client/inc/tsclient.h index c9428504b8..187b7393e6 100644 --- a/src/client/inc/tsclient.h +++ b/src/client/inc/tsclient.h @@ -42,7 +42,6 @@ extern "C" { struct SSqlInfo; #define KvRowNColsThresh 128 // default 128 -#define KVRowRatio 0.9 // for NonVarType, we get value from SDataRow directly, while needs readdressing for SKVRow typedef void (*__async_cb_func_t)(void *param, TAOS_RES *tres, int32_t numOfRows); diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index d665e2100a..9d50c1c62b 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -901,7 +901,7 @@ int tsParseOneRow(char **str, STableDataBlocks *pDataBlocks, int16_t timePrec, i dataRowLen += dataRowDeltaColLen; } - if (kvRowLen < dataRowLen * KVRowRatio) { + if (kvRowLen < dataRowLen) { payloadSetType(payload, SMEM_ROW_KV); } else { payloadSetType(payload, SMEM_ROW_DATA); -- GitLab