From 403e42010fa6fb3ba7f289e13bcc7ef2c10163c7 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 11 Nov 2021 14:52:05 +0800 Subject: [PATCH] remove the limit of where length --- src/client/src/tscSQLParser.c | 8 -------- src/inc/taosdef.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index d065f37585..2097eca045 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4014,10 +4014,6 @@ static int32_t getColQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlEx // TODO: more error handling } END_TRY - if (tbufTell(&bw) >= TSDB_MAX_WHERE_LEN ) { - return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), "where condition string is too long"); - } - // add to required table column list STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, i); int64_t uid = pTableMetaInfo->pTableMeta->id.uid; @@ -5203,10 +5199,6 @@ static int32_t getTagQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SCondE // TODO: more error handling } END_TRY - if (tbufTell(&bw) >= TSDB_MAX_WHERE_LEN ) { - return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), "where condition string is too long"); - } - // add to required table column list STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, i); int64_t uid = pTableMetaInfo->pTableMeta->id.uid; diff --git a/src/inc/taosdef.h b/src/inc/taosdef.h index b88b1eac00..bd1c3518a3 100644 --- a/src/inc/taosdef.h +++ b/src/inc/taosdef.h @@ -218,7 +218,6 @@ do { \ #define TSDB_MAX_TAGS_LEN 16384 #define TSDB_MAX_TAGS 128 #define TSDB_MAX_TAG_CONDITIONS 1024 -#define TSDB_MAX_WHERE_LEN 65535 #define TSDB_AUTH_LEN 16 #define TSDB_KEY_LEN 16 -- GitLab