[TD-6443]<feature>: Support OpenTSDB HTTP JSON data import format

This commit is contained in:
Ganlin Zhao 2021-09-06 12:32:49 +08:00
parent 31b3e489c1
commit f0e4dea1ca
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ int32_t parseValueFromJSON(cJSON *root, TAOS_SML_KV *pVal, SSmlLinesInfo* info)
pVal->type = TSDB_DATA_TYPE_BOOL;
pVal->length = (int16_t)tDataTypes[pVal->type].bytes;
pVal->value = tcalloc(pVal->length, 1);
*(bool *)(pVal->value) = type ? true : false;
*(bool *)(pVal->value) = root->valueint ? true : false;
break;
}
case cJSON_Number: {