提交 1b89e3e5 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> optimize json filter logic

上级 66bc0b01
......@@ -7706,9 +7706,11 @@ int32_t doCheckForCreateFromStable(SSqlObj* pSql, SSqlInfo* pInfo) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg3);
}
}
ret = tVariantDump(&(pItem->pVar), tagVal, pSchema->type, true);
if(IS_JSON_DATA_TYPE(pSchema->type)){
*((int8_t *)tagVal) = TSDB_DATA_BINARY_PLACEHOLDER;
}else {
ret = tVariantDump(&(pItem->pVar), tagVal, pSchema->type, true);
}
// check again after the convert since it may be converted from binary to nchar.
if (pSchema->type == TSDB_DATA_TYPE_BINARY || pSchema->type == TSDB_DATA_TYPE_NCHAR) {
int16_t len = varDataTLen(tagVal);
......@@ -7766,9 +7768,11 @@ int32_t doCheckForCreateFromStable(SSqlObj* pSql, SSqlInfo* pInfo) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg3);
}
}
ret = tVariantDump(&(pItem->pVar), tagVal, pSchema->type, true);
if(IS_JSON_DATA_TYPE(pSchema->type)){
*((int8_t *)tagVal) = TSDB_DATA_BINARY_PLACEHOLDER;
}else {
ret = tVariantDump(&(pItem->pVar), tagVal, pSchema->type, true);
}
// check again after the convert since it may be converted from binary to nchar.
if (pSchema->type == TSDB_DATA_TYPE_BINARY || pSchema->type == TSDB_DATA_TYPE_NCHAR) {
int16_t len = varDataTLen(tagVal);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册