fix:[TS-5528] insert error in sml
This commit is contained in:
parent
4904667471
commit
c9f835e60d
|
@ -262,7 +262,7 @@ int32_t smlBuildSuperTableInfo(SSmlHandle *info, SSmlLineInfo *currElement, SSml
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
void isSmlColAligned(SSmlHandle *info, int cnt, SSmlKv *kv) {
|
bool isSmlColAligned(SSmlHandle *info, int cnt, SSmlKv *kv) {
|
||||||
// cnt begin 0, add ts so + 2
|
// cnt begin 0, add ts so + 2
|
||||||
if (unlikely(cnt + 2 > info->currSTableMeta->tableInfo.numOfColumns)) {
|
if (unlikely(cnt + 2 > info->currSTableMeta->tableInfo.numOfColumns)) {
|
||||||
goto END;
|
goto END;
|
||||||
|
@ -288,11 +288,12 @@ void isSmlColAligned(SSmlHandle *info, int cnt, SSmlKv *kv) {
|
||||||
maxKV->length = kv->length;
|
maxKV->length = kv->length;
|
||||||
info->needModifySchema = true;
|
info->needModifySchema = true;
|
||||||
}
|
}
|
||||||
return;
|
return true;
|
||||||
|
|
||||||
END:
|
END:
|
||||||
info->dataFormat = false;
|
info->dataFormat = false;
|
||||||
info->reRun = true;
|
info->reRun = true;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isSmlTagAligned(SSmlHandle *info, int cnt, SSmlKv *kv) {
|
bool isSmlTagAligned(SSmlHandle *info, int cnt, SSmlKv *kv) {
|
||||||
|
|
Loading…
Reference in New Issue