restore and don't perform the ratio check

This commit is contained in:
kailixu 2021-07-11 15:51:20 +00:00
parent 91a5378f10
commit c5c1d65ab3
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ extern "C" {
struct SSqlInfo; struct SSqlInfo;
#define KvRowNColsThresh 128 // default 128 #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); typedef void (*__async_cb_func_t)(void *param, TAOS_RES *tres, int32_t numOfRows);

View File

@ -901,7 +901,7 @@ int tsParseOneRow(char **str, STableDataBlocks *pDataBlocks, int16_t timePrec, i
dataRowLen += dataRowDeltaColLen; dataRowLen += dataRowDeltaColLen;
} }
if (kvRowLen < dataRowLen * KVRowRatio) { if (kvRowLen < dataRowLen) {
payloadSetType(payload, SMEM_ROW_KV); payloadSetType(payload, SMEM_ROW_KV);
} else { } else {
payloadSetType(payload, SMEM_ROW_DATA); payloadSetType(payload, SMEM_ROW_DATA);