fix(stream): fix the invalid length of tag column name.

This commit is contained in:
Haojun Liao 2023-09-11 19:10:54 +08:00
parent 5ab739ae46
commit 24524e1a8d
1 changed files with 1 additions and 1 deletions

View File

@ -2141,7 +2141,7 @@ int32_t buildCtbNameByGroupIdImpl(const char* stbFullName, uint64_t groupId, cha
int8_t type = TSDB_DATA_TYPE_UBIGINT; int8_t type = TSDB_DATA_TYPE_UBIGINT;
const char* name = "group_id"; const char* name = "group_id";
int32_t len = strlen(name) - 1; int32_t len = strlen(name);
SSmlKv pTag = { .key = name, .keyLen = len, .type = type, .u = groupId, .length = sizeof(uint64_t)}; SSmlKv pTag = { .key = name, .keyLen = len, .type = type, .u = groupId, .length = sizeof(uint64_t)};
taosArrayPush(tags, &pTag); taosArrayPush(tags, &pTag);