diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index a4b18606d188859b86d529207d696d2106daad3e..b8ccbd903c52563ac465f85a95335aa4a3d6c77c 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -1963,8 +1963,9 @@ bool tsdbNextDataBlock(TsdbQueryHandleT* pHandle) { STimeWindow win = (STimeWindow) {pQueryHandle->window.skey, INT64_MAX}; STsdbQueryCond cond = { .order = TSDB_ORDER_ASC, - .numOfCols = (int32_t)(QH_GET_NUM_OF_COLS(pQueryHandle)), - .twindow = win}; + .numOfCols = (int32_t)(QH_GET_NUM_OF_COLS(pQueryHandle)) + }; + cond.twindow = win; cond.colList = calloc(cond.numOfCols, sizeof(SColumnInfo)); if (cond.colList == NULL) {