[TD-2193]<fix>: fix the offset error in arithmetic expression.
This commit is contained in:
parent
2783c56f8a
commit
f26fc83be8
|
@ -947,7 +947,7 @@ static char *getDataBlock(SQueryRuntimeEnv *pRuntimeEnv, SArithmeticSupport *sas
|
|||
if (functionId == TSDB_FUNC_ARITHM) {
|
||||
sas->pArithExpr = &pQuery->pExpr1[col];
|
||||
|
||||
sas->offset = 0;
|
||||
sas->offset = pQuery->pos;
|
||||
sas->colList = pQuery->colList;
|
||||
sas->numOfCols = pQuery->numOfCols;
|
||||
sas->data = calloc(pQuery->numOfCols, POINTER_BYTES);
|
||||
|
|
Loading…
Reference in New Issue