[TD-2193]<fix>: fix the offset error in arithmetic expression.

This commit is contained in:
Haojun Liao 2020-11-23 18:59:13 +08:00
parent 2783c56f8a
commit f26fc83be8
1 changed files with 1 additions and 1 deletions

View File

@ -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);