[TD-6046]<fix> fix ts,derivative() output error for top/bottom/diff/derivative
This commit is contained in:
parent
fbd648b5f2
commit
203f5c7078
|
@ -2024,7 +2024,7 @@ static SQLFunctionCtx* createSQLFunctionCtx(SQueryRuntimeEnv* pRuntimeEnv, SExpr
|
||||||
|
|
||||||
if (functionId == TSDB_FUNC_TOP || functionId == TSDB_FUNC_BOTTOM || functionId == TSDB_FUNC_DIFF) {
|
if (functionId == TSDB_FUNC_TOP || functionId == TSDB_FUNC_BOTTOM || functionId == TSDB_FUNC_DIFF) {
|
||||||
int32_t f = pExpr[0].base.functionId;
|
int32_t f = pExpr[0].base.functionId;
|
||||||
assert(f == TSDB_FUNC_TS || f == TSDB_FUNC_TS_DUMMY);
|
assert(f == TSDB_FUNC_TS || f == TSDB_FUNC_TS_DUMMY || f == TSDB_FUNC_PRJ);
|
||||||
|
|
||||||
pCtx->param[2].i64 = pQueryAttr->order.order;
|
pCtx->param[2].i64 = pQueryAttr->order.order;
|
||||||
pCtx->param[2].nType = TSDB_DATA_TYPE_BIGINT;
|
pCtx->param[2].nType = TSDB_DATA_TYPE_BIGINT;
|
||||||
|
|
Loading…
Reference in New Issue