fix: rowSize check
This commit is contained in:
parent
2ae51f3118
commit
00d374358a
|
@ -63,7 +63,7 @@ static int32_t inputSafetyCheck(SDataDispatchHandle* pHandle, const SInputData*
|
||||||
return TSDB_CODE_QRY_INVALID_INPUT;
|
return TSDB_CODE_QRY_INVALID_INPUT;
|
||||||
}
|
}
|
||||||
SDataBlockDescNode* pSchema = pHandle->pSchema;
|
SDataBlockDescNode* pSchema = pHandle->pSchema;
|
||||||
if (pSchema == NULL || pSchema->outputRowSize > pInput->pData->info.rowSize) {
|
if (pSchema == NULL || pSchema->totalRowSize != pInput->pData->info.rowSize) {
|
||||||
qError("invalid schema");
|
qError("invalid schema");
|
||||||
return TSDB_CODE_QRY_INVALID_INPUT;
|
return TSDB_CODE_QRY_INVALID_INPUT;
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ static int32_t inputSafetyCheck(SDataDispatchHandle* pHandle, const SInputData*
|
||||||
realOutputRowSize += pSlotDesc->dataType.bytes;
|
realOutputRowSize += pSlotDesc->dataType.bytes;
|
||||||
++numOfCols;
|
++numOfCols;
|
||||||
} else {
|
} else {
|
||||||
|
// Slots must be sorted, and slots with 'output' set to true must come first
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue