fix(query): check error code for tsort
This commit is contained in:
parent
4254f4a685
commit
a706c4d49d
|
@ -5749,7 +5749,11 @@ SSDataBlock* getSortedTableMergeScanBlockData(SSortHandle* pHandle, SSDataBlock*
|
||||||
while (1) {
|
while (1) {
|
||||||
pTupleHandle = NULL;
|
pTupleHandle = NULL;
|
||||||
int32_t code = tsortNextTuple(pHandle, &pTupleHandle);
|
int32_t code = tsortNextTuple(pHandle, &pTupleHandle);
|
||||||
if (pTupleHandle == NULL || code != 0) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
|
qError("%s failed at line %d since %s", __func__, __LINE__, tstrerror(code));
|
||||||
|
T_LONG_JMP(pOperator->pTaskInfo->env, code);
|
||||||
|
}
|
||||||
|
if (pTupleHandle == NULL) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue