• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

taosdata / TDengine / #4986

15 Mar 2026 08:32AM UTC coverage: 37.305% (-31.3%) from 68.601%
#4986

push

travis-ci

tomchon
test: keep docs and unit test

125478 of 336361 relevant lines covered (37.3%)

1134847.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/source/libs/executor/src/eventwindowoperator.c
1
/*
2
 * Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
3
 *
4
 * This program is free software: you can use, redistribute, and/or modify
5
 * it under the terms of the GNU Affero General Public License, version 3
6
 * or later ("AGPL"), as published by the Free Software Foundation.
7
 *
8
 * This program is distributed in the hope that it will be useful, but WITHOUT
9
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
 * FITNESS FOR A PARTICULAR PURPOSE.
11
 *
12
 * You should have received a copy of the GNU Affero General Public License
13
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14
 */
15

16
#include "executorInt.h"
17
#include "filter.h"
18
#include "function.h"
19
#include "functionMgt.h"
20
#include "operator.h"
21
#include "querytask.h"
22
#include "tcommon.h"
23
#include "tcompare.h"
24
#include "tdatablock.h"
25
#include "ttime.h"
26

27
static int32_t eventWindowAggregateNext(SOperatorInfo* pOperator, SSDataBlock** pRes);
28
static void    destroyEWindowOperatorInfo(void* param);
29
static int32_t eventWindowAggImpl(SOperatorInfo* pOperator, SEventWindowOperatorInfo* pInfo, SSDataBlock* pBlock);
30
void cleanupResultInfoInEventWindow(SOperatorInfo* pOperator, SEventWindowOperatorInfo* pInfo);
31

32
static int32_t resetEventWindowOperState(SOperatorInfo* pOper) {
×
33
  SEventWindowOperatorInfo* pEvent = pOper->info;
×
34
  SExecTaskInfo*           pTaskInfo = pOper->pTaskInfo;
×
35
  SEventWinodwPhysiNode* pPhynode = (SEventWinodwPhysiNode*)pOper->pPhyNode;
×
36
  pOper->status = OP_NOT_OPENED;
×
37

38
  resetBasicOperatorState(&pEvent->binfo);
×
39
  taosMemoryFreeClear(pEvent->pRow);
×
40

41
  pEvent->groupId = 0;
×
42
  pEvent->pPreDataBlock = NULL;
×
43
  pEvent->inWindow = false;
×
44
  pEvent->winSup.lastTs = INT64_MIN;
×
45

46
  colDataDestroy(&pEvent->twAggSup.timeWindowData);
×
47
  int32_t code = initExecTimeWindowInfo(&pEvent->twAggSup.timeWindowData, &pTaskInfo->window);
×
48
  cleanupResultInfoInEventWindow(pOper, pEvent);
×
49

50
  if (code == 0) {
×
51
    code = resetAggSup(&pOper->exprSupp, &pEvent->aggSup, pTaskInfo, pPhynode->window.pFuncs, NULL,
×
52
                       sizeof(int64_t) * 2 + POINTER_BYTES, pTaskInfo->id.str, NULL,
×
53
                       &pTaskInfo->storageAPI.functionStore);
54
  }
55
  if (code == 0) {
×
56
    code = resetExprSupp(&pEvent->scalarSup, pTaskInfo, pPhynode->window.pExprs, NULL,
×
57
                         &pTaskInfo->storageAPI.functionStore);
58
  }
59
  return code;
×
60
}
61

62
int32_t createEventwindowOperatorInfo(SOperatorInfo* downstream, SPhysiNode* physiNode,
×
63
                                             SExecTaskInfo* pTaskInfo, SOperatorInfo** pOptrInfo) {
64
  QRY_PARAM_CHECK(pOptrInfo);
×
65

66
  int32_t                   code = TSDB_CODE_SUCCESS;
×
67
  int32_t                   lino = 0;
×
68
  SEventWindowOperatorInfo* pInfo = taosMemoryCalloc(1, sizeof(SEventWindowOperatorInfo));
×
69
  SOperatorInfo*            pOperator = taosMemoryCalloc(1, sizeof(SOperatorInfo));
×
70
  if (pInfo == NULL || pOperator == NULL) {
×
71
    code = terrno;
×
72
    goto _error;
×
73
  }
74

75
  pOperator->pPhyNode = physiNode;
×
76
  pOperator->exprSupp.hasWindowOrGroup = true;
×
77
  pOperator->exprSupp.hasWindow = true;
×
78

79
  SEventWinodwPhysiNode* pEventWindowNode = (SEventWinodwPhysiNode*)physiNode;
×
80

81
  int32_t tsSlotId = ((SColumnNode*)pEventWindowNode->window.pTspk)->slotId;
×
82
  code = filterInitFromNode((SNode*)pEventWindowNode->pStartCond, &pInfo->pStartCondInfo, 0,
×
83
                            pTaskInfo->pStreamRuntimeInfo);
×
84
  QUERY_CHECK_CODE(code, lino, _error);
×
85

86
  code = filterInitFromNode((SNode*)pEventWindowNode->pEndCond, &pInfo->pEndCondInfo, 0,
×
87
                            pTaskInfo->pStreamRuntimeInfo);
×
88
  QUERY_CHECK_CODE(code, lino, _error);
×
89

90
  if (pEventWindowNode->window.pExprs != NULL) {
×
91
    int32_t    numOfScalarExpr = 0;
×
92
    SExprInfo* pScalarExprInfo = NULL;
×
93

94
    code = createExprInfo(pEventWindowNode->window.pExprs, NULL, &pScalarExprInfo, &numOfScalarExpr);
×
95
    QUERY_CHECK_CODE(code, lino, _error);
×
96
    code = initExprSupp(&pInfo->scalarSup, pScalarExprInfo, numOfScalarExpr, &pTaskInfo->storageAPI.functionStore);
×
97
    QUERY_CHECK_CODE(code, lino, _error);
×
98
  }
99

100
  code = filterInitFromNode((SNode*)pEventWindowNode->window.node.pConditions, &pOperator->exprSupp.pFilterInfo, 0,
×
101
                            pTaskInfo->pStreamRuntimeInfo);
×
102
  QUERY_CHECK_CODE(code, lino, _error);
×
103

104
  size_t keyBufSize = sizeof(int64_t) + sizeof(int64_t) + POINTER_BYTES;
×
105

106
  int32_t    num = 0;
×
107
  SExprInfo* pExprInfo = NULL;
×
108
  code = createExprInfo(pEventWindowNode->window.pFuncs, NULL, &pExprInfo, &num);
×
109
  QUERY_CHECK_CODE(code, lino, _error);
×
110

111
  initResultSizeInfo(&pOperator->resultInfo, 4096);
×
112

113
  code = initAggSup(&pOperator->exprSupp, &pInfo->aggSup, pExprInfo, num, keyBufSize, pTaskInfo->id.str,
×
114
                    NULL, &pTaskInfo->storageAPI.functionStore);
115
  QUERY_CHECK_CODE(code, lino, _error);
×
116

117
  SSDataBlock* pResBlock = createDataBlockFromDescNode(pEventWindowNode->window.node.pOutputDataBlockDesc);
×
118
  QUERY_CHECK_NULL(pResBlock, code, lino, _error, terrno);
×
119
  initBasicInfo(&pInfo->binfo, pResBlock);
×
120

121
  code = blockDataEnsureCapacity(pResBlock, pOperator->resultInfo.capacity);
×
122
  QUERY_CHECK_CODE(code, lino, _error);
×
123

124
  initResultRowInfo(&pInfo->binfo.resultRowInfo);
×
125
  pInfo->binfo.inputTsOrder = physiNode->inputTsOrder;
×
126
  pInfo->binfo.outputTsOrder = physiNode->outputTsOrder;
×
127
  pInfo->winSup.lastTs = INT64_MIN;
×
128

129
  code = initExecTimeWindowInfo(&pInfo->twAggSup.timeWindowData, &pTaskInfo->window);
×
130
  QUERY_CHECK_CODE(code, lino, _error);
×
131

132
  pInfo->tsSlotId = tsSlotId;
×
133
  pInfo->pPreDataBlock = NULL;
×
134
  pInfo->pOperator = pOperator;
×
135
  pInfo->trueForInfo.trueForType = pEventWindowNode->trueForType;
×
136
  pInfo->trueForInfo.count = pEventWindowNode->trueForCount;
×
137
  pInfo->trueForInfo.duration = pEventWindowNode->trueForDuration;
×
138

139
  setOperatorInfo(pOperator, "EventWindowOperator", QUERY_NODE_PHYSICAL_PLAN_MERGE_EVENT, true, OP_NOT_OPENED, pInfo,
×
140
                  pTaskInfo);
141
  pOperator->fpSet = createOperatorFpSet(optrDummyOpenFn, eventWindowAggregateNext, NULL, destroyEWindowOperatorInfo,
×
142
                                         optrDefaultBufFn, NULL, optrDefaultGetNextExtFn, NULL);
143

144
  setOperatorResetStateFn(pOperator, resetEventWindowOperState);
×
145
  code = appendDownstream(pOperator, &downstream, 1);
×
146
  if (code != TSDB_CODE_SUCCESS) {
×
147
    goto _error;
×
148
  }
149

150
  *pOptrInfo = pOperator;
×
151
  return TSDB_CODE_SUCCESS;
×
152

153
_error:
×
154
  if (pInfo != NULL) {
×
155
    destroyEWindowOperatorInfo(pInfo);
×
156
  }
157

158
  destroyOperatorAndDownstreams(pOperator, &downstream, 1);
×
159
  pTaskInfo->code = code;
×
160
  return code;
×
161
}
162

163
void cleanupResultInfoInEventWindow(SOperatorInfo* pOperator, SEventWindowOperatorInfo* pInfo) {
×
164
  if (pInfo == NULL || pInfo->pRow == NULL || pOperator == NULL) {
×
165
    return;
×
166
  }
167
  SExprSupp*       pSup = &pOperator->exprSupp;
×
168
  for (int32_t j = 0; j < pSup->numOfExprs; ++j) {
×
169
    pSup->pCtx[j].resultInfo = getResultEntryInfo(pInfo->pRow, j, pSup->rowEntryInfoOffset);
×
170
    if (pSup->pCtx[j].fpSet.cleanup) {
×
171
      pSup->pCtx[j].fpSet.cleanup(&pSup->pCtx[j]);
×
172
    }
173
  }
174
}
175

176
void destroyEWindowOperatorInfo(void* param) {
×
177
  SEventWindowOperatorInfo* pInfo = (SEventWindowOperatorInfo*)param;
×
178
  if (pInfo == NULL) {
×
179
    return;
×
180
  }
181

182
  // First cleanup function contexts that may reference result buffers/state.
183
  // This must happen before freeing any buffers that those cleanups might touch.
184
  cleanupResultInfoInEventWindow(pInfo->pOperator, pInfo);
×
185

186
  if (pInfo->pRow != NULL) {
×
187
    taosMemoryFree(pInfo->pRow);
×
188
    pInfo->pRow = NULL;
×
189
  }
190

191
  if (pInfo->pStartCondInfo != NULL) {
×
192
    filterFreeInfo(pInfo->pStartCondInfo);
×
193
    pInfo->pStartCondInfo = NULL;
×
194
  }
195

196
  if (pInfo->pEndCondInfo != NULL) {
×
197
    filterFreeInfo(pInfo->pEndCondInfo);
×
198
    pInfo->pEndCondInfo = NULL;
×
199
  }
200

201
  cleanupBasicInfo(&pInfo->binfo);
×
202
  colDataDestroy(&pInfo->twAggSup.timeWindowData);
×
203
  pInfo->pOperator = NULL;
×
204
  cleanupAggSup(&pInfo->aggSup);
×
205
  cleanupExprSupp(&pInfo->scalarSup);
×
206
  taosMemoryFreeClear(param);
×
207
}
208

209
static int32_t eventWindowAggregateNext(SOperatorInfo* pOperator, SSDataBlock** ppRes) {
×
210
  int32_t                   code = TSDB_CODE_SUCCESS;
×
211
  int32_t                   lino = 0;
×
212
  SEventWindowOperatorInfo* pInfo = pOperator->info;
×
213
  SExecTaskInfo*            pTaskInfo = pOperator->pTaskInfo;
×
214

215
  SExprSupp* pSup = &pOperator->exprSupp;
×
216
  int32_t    order = pInfo->binfo.inputTsOrder;
×
217

218
  SSDataBlock* pRes = pInfo->binfo.pRes;
×
219

220
  blockDataCleanup(pRes);
×
221

222
  SOperatorInfo* downstream = pOperator->pDownstream[0];
×
223
  while (1) {
×
224
    SSDataBlock* pBlock = NULL;
×
225
    if (pInfo->pPreDataBlock == NULL) {
×
226
      pBlock = getNextBlockFromDownstream(pOperator, 0);
×
227
    } else {
228
      pBlock = pInfo->pPreDataBlock;
×
229
      pInfo->pPreDataBlock = NULL;
×
230
    }
231

232
    if (pBlock == NULL) {
×
233
      break;
×
234
    }
235

236
    pRes->info.scanFlag = pBlock->info.scanFlag;
×
237
    pRes->info.dataLoad = 1;
×
238
    code = setInputDataBlock(pSup, pBlock, order, pBlock->info.scanFlag, true);
×
239
    QUERY_CHECK_CODE(code, lino, _end);
×
240

241
    code = blockDataUpdateTsWindow(pBlock, pInfo->tsSlotId);
×
242
    QUERY_CHECK_CODE(code, lino, _end);
×
243

244
    // there is an scalar expression that needs to be calculated right before apply the group aggregation.
245
    if (pInfo->scalarSup.pExprInfo != NULL) {
×
246
      code = projectApplyFunctions(pInfo->scalarSup.pExprInfo, pBlock, pBlock, pInfo->scalarSup.pCtx,
×
247
                                   pInfo->scalarSup.numOfExprs, NULL, GET_STM_RTINFO(pOperator->pTaskInfo));
×
248
      QUERY_CHECK_CODE(code, lino, _end);
×
249
    }
250

251
    code = eventWindowAggImpl(pOperator, pInfo, pBlock);
×
252
    QUERY_CHECK_CODE(code, lino, _end);
×
253

254
    code = doFilter(pRes, pSup->pFilterInfo, NULL, NULL);
×
255
    QUERY_CHECK_CODE(code, lino, _end);
×
256

257
    if (pRes->info.rows >= pOperator->resultInfo.threshold ||
×
258
        (pRes->info.id.groupId != pInfo->groupId && pRes->info.rows > 0)) {
×
259
      (*ppRes) = pRes;
×
260
      return code;
×
261
    }
262
  }
263

264
_end:
×
265
  if (code != TSDB_CODE_SUCCESS) {
×
266
    qError("%s failed at line %d since %s", __func__, lino, tstrerror(code));
×
267
    pTaskInfo->code = code;
×
268
    T_LONG_JMP(pTaskInfo->env, code);
×
269
  }
270
  (*ppRes) =  pRes->info.rows == 0 ? NULL : pRes;
×
271
  return code;
×
272
}
273

274
static int32_t setSingleOutputTupleBufv1(SResultRowInfo* pResultRowInfo, STimeWindow* win, SResultRow** pResult,
×
275
                                         SExprSupp* pExprSup, SAggSupporter* pAggSup) {
276
  if (*pResult == NULL) {
×
277
    SResultRow* p = taosMemoryCalloc(1, pAggSup->resultRowSize);
×
278
    if (!p) {
×
279
      return terrno;
×
280
    }
281
    pResultRowInfo->cur = (SResultRowPosition){.pageId = p->pageId, .offset = p->offset};
×
282
    *pResult = p;
×
283
  }
284

285
  (*pResult)->win = *win;
×
286

287
  return setResultRowInitCtx(*pResult, pExprSup->pCtx, pExprSup->numOfExprs, pExprSup->rowEntryInfoOffset);
×
288
}
289

290
static int32_t doEventWindowAggImpl(SEventWindowOperatorInfo* pInfo, SExprSupp* pSup, int32_t startIndex,
×
291
                                    int32_t endIndex, const SSDataBlock* pBlock, int64_t* tsList,
292
                                    SExecTaskInfo* pTaskInfo) {
293
  int32_t code = TSDB_CODE_SUCCESS;
×
294
  SWindowRowsSup* pRowSup = &pInfo->winSup;
×
295

296
  int32_t numOfOutput = pSup->numOfExprs;
×
297
  int32_t numOfRows = endIndex - startIndex + 1;
×
298

299
  doKeepTuple(pRowSup, tsList[endIndex], endIndex, pBlock->info.id.groupId);
×
300

301
  code = setSingleOutputTupleBufv1(&pInfo->binfo.resultRowInfo, &pRowSup->win, &pInfo->pRow, pSup, &pInfo->aggSup);
×
302
  if (code != TSDB_CODE_SUCCESS) {  // null data, too many state code
×
303
    qError("failed to set single output tuple buffer, code:%d", code);
×
304
    return code;
×
305
  }
306

307
  updateTimeWindowInfo(&pInfo->twAggSup.timeWindowData, &pRowSup->win, 0);
×
308
  pInfo->pRow->nOrigRows += numOfRows;
×
309
  code = applyAggFunctionOnPartialTuples(pTaskInfo, pSup->pCtx, &pInfo->twAggSup.timeWindowData, startIndex, numOfRows,
×
310
                                         pBlock->info.rows, numOfOutput);
×
311
  return code;
×
312
}
313

314
int32_t eventWindowAggImpl(SOperatorInfo* pOperator, SEventWindowOperatorInfo* pInfo, SSDataBlock* pBlock) {
×
315
  int32_t          code = TSDB_CODE_SUCCESS;
×
316
  int32_t          lino = 0;
×
317
  SExecTaskInfo*   pTaskInfo = pOperator->pTaskInfo;
×
318
  SExprSupp*       pSup = &pOperator->exprSupp;
×
319
  SSDataBlock*     pRes = pInfo->binfo.pRes;
×
320
  int64_t          gid = pBlock->info.id.groupId;
×
321
  SColumnInfoData *ps = NULL, *pe = NULL;
×
322
  SColumnInfoData* pColInfoData = taosArrayGet(pBlock->pDataBlock, pInfo->tsSlotId);
×
323
  QUERY_CHECK_NULL(pColInfoData, code, lino, _return, terrno);
×
324
  TSKEY*           tsList = (TSKEY*)pColInfoData->pData;
×
325
  SWindowRowsSup*  pRowSup = &pInfo->winSup;
×
326
  int32_t          rowIndex = 0;
×
327
  STrueForInfo*    pTrueForInfo = getTrueForInfo(pOperator);
×
328

329
  pRowSup->numOfRows = 0;
×
330
  if (pInfo->groupId == 0) {
×
331
    pInfo->groupId = gid;
×
332
  } else if (pInfo->groupId != gid) {
×
333
    // this is a new group, reset the info
334
    pInfo->inWindow = false;
×
335
    pInfo->groupId = gid;
×
336
    pInfo->winSup.lastTs = INT64_MIN;
×
337
    pInfo->pPreDataBlock = pBlock;
×
338
    goto _return;
×
339
  }
340
  pRes->info.id.groupId = pInfo->groupId;
×
341

342
  SFilterColumnParam param1 = {.numOfCols = taosArrayGetSize(pBlock->pDataBlock), .pDataBlock = pBlock->pDataBlock};
×
343

344
  code = filterSetDataFromSlotId(pInfo->pStartCondInfo, &param1);
×
345
  QUERY_CHECK_CODE(code, lino, _return);
×
346

347
  int32_t status1 = 0;
×
348
  code = filterExecute(pInfo->pStartCondInfo, pBlock, &ps, NULL, param1.numOfCols, &status1);
×
349
  QUERY_CHECK_CODE(code, lino, _return);
×
350

351
  SFilterColumnParam param2 = {.numOfCols = taosArrayGetSize(pBlock->pDataBlock), .pDataBlock = pBlock->pDataBlock};
×
352
  code = filterSetDataFromSlotId(pInfo->pEndCondInfo, &param2);
×
353
  QUERY_CHECK_CODE(code, lino, _return);
×
354

355
  int32_t status2 = 0;
×
356
  code = filterExecute(pInfo->pEndCondInfo, pBlock, &pe, NULL, param2.numOfCols, &status2);
×
357
  QUERY_CHECK_CODE(code, lino, _return);
×
358

359
  for (int32_t i = 0; i < pBlock->info.rows; ++i) {
×
360
    if (pBlock->info.scanFlag != PRE_SCAN) {
×
361
      if (pInfo->winSup.lastTs == INT64_MIN) {
×
362
        pInfo->winSup.lastTs = tsList[i];
×
363
      } else {
364
        if (tsList[i] == pInfo->winSup.lastTs) {
×
365
          qError("duplicate timestamp found in event window operator, groupId: %" PRId64 ", timestamp: %" PRId64,
×
366
                 gid, tsList[i]);
367
          code = TSDB_CODE_QRY_WINDOW_DUP_TIMESTAMP;
×
368
          QUERY_CHECK_CODE(code, lino, _return);
×
369
        } else {
370
          pInfo->winSup.lastTs = tsList[i];
×
371
        }
372
      }
373
    }
374
  }
375
  int32_t startIndex = pInfo->inWindow ? 0 : -1;
×
376
  while (rowIndex < pBlock->info.rows) {
×
377
    if (pInfo->inWindow) {  // let's find the first end value
×
378
      for (rowIndex = startIndex; rowIndex < pBlock->info.rows; ++rowIndex) {
×
379
        if (((bool*)pe->pData)[rowIndex]) {
×
380
          break;
×
381
        }
382
      }
383

384
      if (rowIndex < pBlock->info.rows) {
×
385
        code = doEventWindowAggImpl(pInfo, pSup, startIndex, rowIndex, pBlock, tsList, pTaskInfo);
×
386
        QUERY_CHECK_CODE(code, lino, _return);
×
387
        doUpdateNumOfRows(pSup->pCtx, pInfo->pRow, pSup->numOfExprs, pSup->rowEntryInfoOffset);
×
388

389
        if (!isTrueForSatisfied(pTrueForInfo, pRowSup->win.skey, pRowSup->win.ekey, pInfo->pRow->nOrigRows)) {
×
390
          qDebug("skip small window, groupId: %" PRId64 ", skey: %" PRId64 ", ekey: %" PRId64 ", nrows: %u",
×
391
                 pInfo->groupId, pRowSup->win.skey, pRowSup->win.ekey, pInfo->pRow->nOrigRows);
392
        } else {
393
          // check buffer size
394
          if (pRes->info.rows + pInfo->pRow->numOfRows >= pRes->info.capacity) {
×
395
            int32_t newSize = pRes->info.rows + pInfo->pRow->numOfRows;
×
396
            code = blockDataEnsureCapacity(pRes, newSize);
×
397
            QUERY_CHECK_CODE(code, lino, _return);
×
398
          }
399

400
          code = copyResultrowToDataBlock(pSup->pExprInfo, pSup->numOfExprs, pInfo->pRow, pSup->pCtx, pRes,
×
401
                                          pSup->rowEntryInfoOffset, pTaskInfo);
×
402
          QUERY_CHECK_CODE(code, lino, _return);
×
403

404
          pRes->info.rows += pInfo->pRow->numOfRows;
×
405
        }
406
        pInfo->pRow->numOfRows = 0;
×
407
        pInfo->pRow->nOrigRows = 0;
×
408

409
        pInfo->inWindow = false;
×
410
        rowIndex += 1;
×
411
      } else {
412
        code = doEventWindowAggImpl(pInfo, pSup, startIndex, pBlock->info.rows - 1, pBlock, tsList, pTaskInfo);
×
413
        QUERY_CHECK_CODE(code, lino, _return);
×
414
      }
415
    } else {  // find the first start value that is fulfill for the start condition
416
      for (; rowIndex < pBlock->info.rows; ++rowIndex) {
×
417
        if (((bool*)ps->pData)[rowIndex]) {
×
418
          doKeepNewWindowStartInfo(pRowSup, tsList, rowIndex, gid);
×
419
          pInfo->inWindow = true;
×
420
          startIndex = rowIndex;
×
421
          if (pInfo->pRow != NULL) {
×
422
            clearResultRowInitFlag(pSup->pCtx, pSup->numOfExprs);
×
423
          }
424
          break;
×
425
        }
426
      }
427

428
      if (pInfo->inWindow) {
×
429
        continue;  // try to find the end position
×
430
      } else {
431
        break;  // no valid start position, quit
×
432
      }
433
    }
434
  }
435

436
_return:
×
437

438
  if (code != TSDB_CODE_SUCCESS) {
×
439
    qError("%s failed at line %d since %s", __func__, lino, tstrerror(code));
×
440
  }
441
  colDataDestroy(ps);
×
442
  taosMemoryFree(ps);
×
443
  colDataDestroy(pe);
×
444
  taosMemoryFree(pe);
×
445

446
  return code;
×
447
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc