restore and don't perform the ratio check
This commit is contained in:
parent
91a5378f10
commit
c5c1d65ab3
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue