提交 c5c1d65a 编写于 作者: K kailixu

restore and don't perform the ratio check

上级 91a5378f
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册