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

taosdata / TDengine / #4969

27 Feb 2026 07:19AM UTC coverage: 67.69% (+0.8%) from 66.902%
#4969

push

travis-ci

web-flow
merge: from main to 3.0 #34603

15 of 58 new or added lines in 2 files covered. (25.86%)

5075 existing lines in 154 files now uncovered.

208337 of 307781 relevant lines covered (67.69%)

129686642.38 hits per line

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

91.67
/source/libs/executor/inc/executorInt.h
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
#ifndef TDENGINE_EXECUTORINT_H
16
#define TDENGINE_EXECUTORINT_H
17

18
#ifdef __cplusplus
19
extern "C" {
20
#endif
21

22
#include "os.h"
23
#include "tcommon.h"
24
#include "theap.h"
25
#include "tlosertree.h"
26
#include "tsort.h"
27
#include "tvariant.h"
28

29
#include "dataSinkMgt.h"
30
#include "executil.h"
31
#include "executor.h"
32
#include "planner.h"
33
#include "scalar.h"
34
#include "taosdef.h"
35
#include "tarray.h"
36
#include "tfill.h"
37
#include "thash.h"
38
#include "tlockfree.h"
39
#include "tmsg.h"
40
#include "tpagedbuf.h"
41
#include "tlrucache.h"
42
#include "tworker.h"
43

44
typedef int32_t (*__block_search_fn_t)(char* data, int32_t num, int64_t key, int32_t order);
45

46
typedef struct STsdbReader STsdbReader;
47
typedef struct STqReader   STqReader;
48

49
typedef enum EExtWinMode {
50
  EEXT_MODE_SCALAR = 1,
51
  EEXT_MODE_AGG,
52
  EEXT_MODE_INDEFR_FUNC,
53
} EExtWinMode;
54

55
#define IS_VALID_SESSION_WIN(winInfo)        ((winInfo).sessionWin.win.skey > 0)
56
#define SET_SESSION_WIN_INVALID(winInfo)     ((winInfo).sessionWin.win.skey = INT64_MIN)
57
#define IS_INVALID_SESSION_WIN_KEY(winKey)   ((winKey).win.skey <= 0)
58
#define SET_SESSION_WIN_KEY_INVALID(pWinKey) ((pWinKey)->win.skey = INT64_MIN)
59

60
#define IS_STREAM_MODE(_task) ((_task)->execModel == OPTR_EXEC_MODEL_STREAM)
61

62
/**
63
 * If the number of generated results is greater than this value,
64
 * query query will be halt and return results to client immediate.
65
 */
66
typedef struct SResultInfo {  // TODO refactor
67
  int64_t totalRows;          // total generated result size in rows
68
  int64_t totalBytes;         // total results in bytes.
69
  int32_t capacity;           // capacity of current result output buffer
70
  int32_t threshold;          // result size threshold in rows.
71
} SResultInfo;
72

73
typedef struct STableQueryInfo {
74
  TSKEY              lastKey;  // last check ts, todo remove it later
75
  SResultRowPosition pos;      // current active time window
76
} STableQueryInfo;
77

78
typedef struct SLimit {
79
  int64_t limit;       // default -1, no limit
80
  int64_t offset;
81
} SLimit;
82

83
typedef struct STableScanAnalyzeInfo SFileBlockLoadRecorder;
84

85
enum {
86
  STREAM_RECOVER_STEP__NONE = 0,
87
  STREAM_RECOVER_STEP__PREPARE1,
88
  STREAM_RECOVER_STEP__PREPARE2,
89
  STREAM_RECOVER_STEP__SCAN1,
90
};
91

92
extern int32_t exchangeObjRefPool;
93

94
typedef struct {
95
  char*   pData;
96
  bool    isNull;
97
  int16_t type;
98
  int32_t bytes;
99
} SGroupKeys, SStateKeys;
100

101
typedef struct {
102
  char*           tablename;
103
  char*           dbname;
104
  int32_t         tversion;
105
  int32_t         rversion;
106
  SSchemaWrapper* sw;
107
  SSchemaWrapper* qsw;
108
} SSchemaInfo;
109

110
typedef struct SExchangeOpStopInfo {
111
  int32_t operatorType;
112
  int64_t refId;
113
} SExchangeOpStopInfo;
114

115
typedef struct SGcOperatorParam {
116
  int64_t sessionId;
117
  int32_t downstreamIdx;
118
  int32_t vgId;
119
  int64_t tbUid;
120
  bool    needCache;
121
} SGcOperatorParam;
122

123
typedef struct SGcNotifyOperatorParam {
124
  int32_t downstreamIdx;
125
  int32_t vgId;
126
  int64_t tbUid;
127
} SGcNotifyOperatorParam;
128

129
struct SExprSupp {
130
  SExprInfo*      pExprInfo;
131
  int32_t         numOfExprs;  // the number of scalar expression in group operator
132
  SqlFunctionCtx* pCtx;
133
  int32_t*        rowEntryInfoOffset;  // offset value for each row result cell info
134
  SFilterInfo*    pFilterInfo;
135
  bool            hasWindowOrGroup;    // denote that the function is used with time window or group
136
  bool            hasWindow;           // denote that the function is used with time window
137
  bool            hasIndefRowsFunc;
138
};
139

140
typedef enum {
141
  EX_SOURCE_DATA_NOT_READY = 0x1,
142
  EX_SOURCE_DATA_STARTED,
143
  EX_SOURCE_DATA_READY,
144
  EX_SOURCE_DATA_EXHAUSTED,
145
} EX_SOURCE_STATUS;
146

147
#define COL_MATCH_FROM_COL_ID  0x1
148
#define COL_MATCH_FROM_SLOT_ID 0x2
149

150
typedef struct SLoadRemoteDataInfo {
151
  uint64_t totalSize;     // total load bytes from remote
152
  uint64_t totalRows;     // total number of rows
153
  uint64_t totalElapsed;  // total elapsed time
154
} SLoadRemoteDataInfo;
155

156
typedef struct SLimitInfo {
157
  SLimit   limit;
158
  SLimit   slimit;
159
  uint64_t currentGroupId;
160
  int64_t  remainGroupOffset;
161
  int64_t  numOfOutputGroups;
162
  int64_t  remainOffset;
163
  int64_t  numOfOutputRows;
164
} SLimitInfo;
165

166
typedef struct SSortMergeJoinOperatorParam {
167
  bool initDownstream;
168
} SSortMergeJoinOperatorParam;
169

170
typedef enum EExchangeSourceType {
171
  EX_SRC_TYPE_STB_JOIN_SCAN = 1,
172
  EX_SRC_TYPE_VSTB_SCAN,
173
  EX_SRC_TYPE_VSTB_WIN_SCAN,
174
  EX_SRC_TYPE_VSTB_AGG_SCAN,
175
  EX_SRC_TYPE_VSTB_TAG_SCAN,
176
  EX_SRC_TYPE_VTB_WIN_SCAN,
177
} EExchangeSourceType;
178

179
typedef enum {
180
  DYN_TYPE_EXCHANGE_PARAM = 1,
181
  NOTIFY_TYPE_EXCHANGE_PARAM,
182
} EExchangeGetParamType;
183

184
typedef struct SExchangeOperatorBasicParam {
185
  EExchangeGetParamType paramType;
186
  /* dynamic scan params */
187
  int32_t               vgId;
188
  int32_t               srcOpType;
189
  bool                  tableSeq;
190
  SArray*               uidList;
191
  EExchangeSourceType   type;
192
  bool                  isNewDeployed; // used with newDeployedSrc
193
  bool                  isNewParam;
194
  uint64_t              groupid;
195
  SOrgTbInfo*           orgTbInfo;
196
  SArray*               batchOrgTbInfo; // SArray<SOrgTbInfo>
197
  SArray*               tagList;
198
  STimeWindow           window;
199
  SDownstreamSourceNode newDeployedSrc; // used with isNewDeployed
200
  /* notify scan params */
201
  TSKEY notifyTs;
202
} SExchangeOperatorBasicParam;
203

204
typedef struct SExchangeOperatorBatchParam {
205
  bool       multiParams;
206
  SSHashObj* pBatchs;  // SExchangeOperatorBasicParam
207
} SExchangeOperatorBatchParam;
208

209
typedef struct SExchangeOperatorParam {
210
  bool                        multiParams;
211
  SExchangeOperatorBasicParam basic;
212
} SExchangeOperatorParam;
213

214
typedef struct SExchangeSrcIndex {
215
  int32_t srcIdx;
216
  int32_t inUseIdx;
217
} SExchangeSrcIndex;
218

219
typedef struct SExchangeInfo {
220
  int64_t    seqId;
221
  SArray*    pSources;
222
  SSHashObj* pHashSources;
223
  SArray*    pSourceDataInfo;
224
  tsem_t     ready;
225
  void*      pTransporter;
226

227
  // SArray<SSDataBlock*>, result block list, used to keep the multi-block that
228
  // passed by downstream operator
229
  SArray*      pResultBlockList;
230
  SArray*      pRecycledBlocks;  // build a pool for small data block to avoid to repeatly create and then destroy.
231
  SSDataBlock* pDummyBlock;      // dummy block, not keep data
232
  bool         seqLoadData;      // sequential load data or not, false by default
233
  bool         dynamicOp;
234
  bool         dynTbname;         // %%tbname for stream    
235
  int32_t      current;
236
  SLoadRemoteDataInfo loadInfo;
237
  int64_t             self;
238
  SLimitInfo          limitInfo;
239
  int64_t             openedTs;  // start exec time stamp, todo: move to SLoadRemoteDataInfo
240
  char*               pTaskId;
241
  SArray*             pFetchRpcHandles;
242
  bool                notifyToSend;  // need to send notify STEP DONE message
243
  TSKEY               notifyTs;      // notify timestamp
244
} SExchangeInfo;
245

246
typedef struct SScanInfo {
247
  int32_t numOfAsc;
248
  int32_t numOfDesc;
249
} SScanInfo;
250

251
typedef struct SSampleExecInfo {
252
  double   sampleRatio;  // data block sample ratio, 1 by default
253
  uint32_t seed;         // random seed value
254
} SSampleExecInfo;
255

256
enum {
257
  TABLE_SCAN__TABLE_ORDER = 1,
258
  TABLE_SCAN__BLOCK_ORDER = 2,
259
};
260

261
typedef enum ETableCountState {
262
  TABLE_COUNT_STATE_NONE = 0,       // before start scan
263
  TABLE_COUNT_STATE_SCAN = 1,       // cur group scanning
264
  TABLE_COUNT_STATE_PROCESSED = 2,  // cur group processed
265
  TABLE_COUNT_STATE_END = 3,        // finish or noneed to process
266
} ETableCountState;
267

268
struct SAggSupporter {
269
  SSHashObj*     pResultRowHashTable;  // quick locate the window object for each result
270
  char*          keyBuf;               // window key buffer
271
  SDiskbasedBuf* pResultBuf;           // query result buffer based on blocked-wised disk file
272
  int32_t        resultRowSize;  // the result buffer size for each result row, with the meta data size for each row
273
  int32_t        currentPageId;  // current write page id
274
};
275

276
typedef struct {
277
  // if the upstream is an interval operator, the interval info is also kept here to get the time window to check if
278
  // current data block needs to be loaded.
279
  SInterval      interval;
280
  SAggSupporter* pAggSup;
281
  SExprSupp*     pExprSup;  // expr supporter of aggregate operator
282
} SAggOptrPushDownInfo;
283

284
typedef struct STableMetaCacheInfo {
285
  SLRUCache* pTableMetaEntryCache;  // 100 by default
286
  uint64_t   metaFetch;
287
  uint64_t   cacheHit;
288
} STableMetaCacheInfo;
289

290
typedef struct STableScanBase {
291
  STsdbReader*           dataReader;
292
  SFileBlockLoadRecorder readRecorder;
293
  SQueryTableDataCond    cond;
294
  SQueryTableDataCond    orgCond; // use for virtual super table scan
295
  SAggOptrPushDownInfo   pdInfo;
296
  SColMatchInfo          matchInfo;
297
  SReadHandle            readHandle;
298
  SExprSupp              pseudoSup;
299
  STableMetaCacheInfo    metaCache;
300
  int32_t                scanFlag;  // table scan flag to denote if it is a repeat/reverse/main scan
301
  int32_t                dataBlockLoadFlag;
302
  SLimitInfo             limitInfo;
303
  // there are more than one table list exists in one task, if only one vnode exists.
304
  STableListInfo* pTableListInfo;
305
  TsdReader       readerAPI;
306
} STableScanBase;
307

308
typedef struct STableScanInfo {
309
  STableScanBase  base;
310
  SScanInfo       scanInfo;
311
  int32_t         scanTimes;
312
  SSDataBlock*    pResBlock;
313
  SHashObj*       pIgnoreTables;
314
  SSampleExecInfo sample;           // sample execution info
315
  int32_t         tableStartIndex;  // current group scan start
316
  int32_t         tableEndIndex;    // current group scan end
317
  int32_t         currentGroupId;
318
  int32_t         currentTable;
319
  int8_t          scanMode;
320
  int8_t          assignBlockUid;
321
  uint8_t         countState;  // empty table count state
322
  bool            hasGroupByTag;
323
  bool            filesetDelimited;
324
  bool            needCountEmptyTable;
325
  // for virtual super table scan
326
  SSDataBlock*    pOrgBlock;
327
  bool            ignoreTag;
328
  bool            virtualStableScan;
329
  SHashObj*       readerCache;
330
  bool            newReader;
331
  SArray*         pBlockColMap;
332
  // for virtual super table batch scan
333
  int32_t         lastBatchIdx;
334
  int32_t         currentBatchIdx;
335
  STimeWindow     lastTimeWindow;
336
  SArray*         lastColArray;
337
  SArray*         lastBlockColArray;
338
  SArray*         pBatchColMap;  // SArray<SOrgTbInfo>
339
  STimeWindow     cachedTimeWindow;
340
  SArray*         cachedTagList;
341
  uint64_t        cachedGroupId;
342
} STableScanInfo;
343

344
typedef enum ESubTableInputType {
345
  SUB_TABLE_MEM_BLOCK,
346
  SUB_TABLE_EXT_PAGES,
347
} ESubTableInputType;
348

349
typedef struct STmsSubTableInput {
350
  STsdbReader*        pReader;
351
  SQueryTableDataCond tblCond;
352
  STableKeyInfo*      pKeyInfo;
353
  bool                bInMemReader;
354
  ESubTableInputType  type;
355
  SSDataBlock*        pReaderBlock;
356

357
  SArray*      aBlockPages;
358
  SSDataBlock* pPageBlock;
359
  int32_t      pageIdx;
360

361
  int32_t      rowIdx;
362
  int64_t*     aTs;
363
  SSDataBlock* pInputBlock;
364
} STmsSubTableInput;
365

366
typedef struct SBlockOrderInfo SBlockOrderInfo;
367
typedef struct STmsSubTablesMergeInfo {
368
  SBlockOrderInfo* pTsOrderInfo;
369
  SBlockOrderInfo* pPkOrderInfo;
370

371
  int32_t                 numSubTables;
372
  STmsSubTableInput*      aInputs;
373
  SMultiwayMergeTreeInfo* pTree;
374
  int32_t                 numSubTablesCompleted;
375

376
  int32_t        numTableBlocksInMem;
377
  SDiskbasedBuf* pBlocksBuf;
378

379
  int32_t numInMemReaders;
380
} STmsSubTablesMergeInfo;
381

382
typedef struct STableMergeScanInfo {
383
  int32_t         tableStartIndex;
384
  int32_t         tableEndIndex;
385
  bool            hasGroupId;
386
  uint64_t        groupId;
387
  STableScanBase  base;
388
  int32_t         bufPageSize;
389
  uint32_t        sortBufSize;  // max buffer size for in-memory sort
390
  SArray*         pSortInfo;
391
  SSortHandle*    pSortHandle;
392
  SSDataBlock*    pSortInputBlock;
393
  SSDataBlock*    pReaderBlock;
394
  int64_t         startTs;  // sort start time
395
  SLimitInfo      limitInfo;
396
  int64_t         numOfRows;
397
  SScanInfo       scanInfo;
398
  int32_t         scanTimes;
399
  int32_t         readIdx;
400
  SSDataBlock*    pResBlock;
401
  SSampleExecInfo sample;         // sample execution info
402
  SSHashObj*      mTableNumRows;  // uid->num of table rows
403
  SHashObj*       mSkipTables;
404
  int64_t         mergeLimit;
405
  SSortExecInfo   sortExecInfo;
406
  bool            needCountEmptyTable;
407
  bool            bGroupProcessed;  // the group return data means processed
408
  bool            filesetDelimited;
409
  bool            bNewFilesetEvent;
410
  bool            bNextDurationBlockEvent;
411
  int32_t         numNextDurationBlocks;
412
  SSDataBlock*    nextDurationBlocks[2];
413
  bool            rtnNextDurationBlocks;
414
  int32_t         nextDurationBlocksIdx;
415
  bool            bSortRowId;
416

417
  STmsSubTablesMergeInfo* pSubTablesMergeInfo;
418
} STableMergeScanInfo;
419

420
typedef struct STagScanFilterContext {
421
  SHashObj* colHash;
422
  int32_t   index;
423
  SArray*   cInfoList;
424
  int32_t   code;
425
} STagScanFilterContext;
426

427
typedef struct STagScanInfo {
428
  SColumnInfo*          pCols;
429
  SSDataBlock*          pRes;
430
  SColMatchInfo         matchInfo;
431
  int32_t               curPos;
432
  SReadHandle           readHandle;
433
  STableListInfo*       pTableListInfo;
434
  uint64_t              suid;
435
  void*                 pCtbCursor;
436
  SNode*                pTagCond;
437
  SNode*                pTagIndexCond;
438
  STagScanFilterContext filterCtx;
439
  SArray*               aUidTags;     // SArray<STUidTagInfo>
440
  SArray*               aFilterIdxs;  // SArray<int32_t>
441
  SStorageAPI*          pStorageAPI;
442
  SLimitInfo            limitInfo;
443
} STagScanInfo;
444

445
typedef enum EStreamScanMode {
446
  STREAM_SCAN_FROM_READERHANDLE = 1,
447
  STREAM_SCAN_FROM_RES,
448
  STREAM_SCAN_FROM_UPDATERES,
449
  STREAM_SCAN_FROM_DELETE_DATA,
450
  STREAM_SCAN_FROM_DATAREADER_RETRIEVE,
451
  STREAM_SCAN_FROM_DATAREADER_RANGE,
452
  STREAM_SCAN_FROM_CREATE_TABLERES,
453
} EStreamScanMode;
454

455
enum {
456
  PROJECT_RETRIEVE_CONTINUE = 0x1,
457
  PROJECT_RETRIEVE_DONE = 0x2,
458
};
459

460
typedef struct SPartitionBySupporter {
461
  SArray* pGroupCols;     // group by columns, SArray<SColumn>
462
  SArray* pGroupColVals;  // current group column values, SArray<SGroupKeys>
463
  char*   keyBuf;         // group by keys for hash
464
  bool    needCalc;       // partition by column
465
} SPartitionBySupporter;
466

467
typedef struct SPartitionDataInfo {
468
  uint64_t groupId;
469
  char*    tbname;
470
  SArray*  rowIds;
471
} SPartitionDataInfo;
472

473
typedef struct STimeWindowAggSupp {
474
  TSKEY           maxTs;
475
  TSKEY           minTs;
476
  SColumnInfoData timeWindowData;  // query time window info for scalar function execution.
477
} STimeWindowAggSupp;
478

479
typedef struct SStreamNotifyEventSupp {
480
  SHashObj*    pWindowEventHashMap;  // Hash map from gorupid+skey+eventType to the list node of window event.
481
  SHashObj*    pTableNameHashMap;    // Hash map from groupid to the dest child table name.
482
  SSDataBlock* pEventBlock;          // The datablock contains all window events and results.
483
  SArray*      pSessionKeys;
484
  const char*  windowType;
485
} SStreamNotifyEventSupp;
486

487
typedef struct SSteamOpBasicInfo {
488
  int16_t                operatorFlag;
489
  SStreamNotifyEventSupp notifyEventSup;
490
  bool                   recvCkBlock;
491
  SSDataBlock*           pCheckpointRes;
492
  SSHashObj*             pSeDeleted;
493
  void*                  pDelIterator;
494
  SSDataBlock*           pDelRes;
495
  SArray*                pUpdated;
496
  STableTsDataState*     pTsDataState;
497
  int32_t                numOfRecv;
498
} SSteamOpBasicInfo;
499

500
typedef struct SStreamFillSupporter {
501
  int32_t        type;  // fill type
502
  SInterval      interval;
503
  SResultRowData prev;
504
  TSKEY          prevOriginKey;
505
  SResultRowData cur;
506
  SResultRowData next;
507
  TSKEY          nextOriginKey;
508
  SResultRowData nextNext;
509
  SFillColInfo*  pAllColInfo;  // fill exprs and not fill exprs
510
  SExprSupp      notFillExprSup;
511
  int32_t        numOfAllCols;  // number of all exprs, including the tags columns
512
  int32_t        numOfFillCols;
513
  int32_t        numOfNotFillCols;
514
  int32_t        rowSize;
515
  SSHashObj*     pResMap;
516
  bool           hasDelete;
517
  SStorageAPI*   pAPI;
518
  STimeWindow    winRange;
519
  int32_t        pkColBytes;
520
  __compar_fn_t  comparePkColFn;
521
  int32_t*       pOffsetInfo;
522
  bool           normalFill;
523
  void*          pEmptyRow;
524
  SArray*        pResultRange;
525
} SStreamFillSupporter;
526

527
typedef struct SStreamScanInfo {
528
  SSteamOpBasicInfo basic;
529
  SExprInfo*        pPseudoExpr;
530
  int32_t           numOfPseudoExpr;
531
  SExprSupp         tbnameCalSup;
532
  SExprSupp*        pPartTbnameSup;
533
  SExprSupp         tagCalSup;
534
  int32_t           primaryTsIndex;  // primary time stamp slot id
535
  SReadHandle       readHandle;
536
  SInterval         interval;  // if the upstream is an interval operator, the interval info is also kept here.
537
  SColMatchInfo     matchInfo;
538
  SHashObj*         pCol2SlotId;
539

540
  SArray*      pBlockLists;  // multiple SSDatablock.
541
  SSDataBlock* pRes;         // result SSDataBlock
542
  int32_t      updateResIndex;
543
  int32_t      blockType;        // current block type
544
  int32_t      validBlockIndex;  // Is current data has returned?
545
  uint64_t     numOfExec;        // execution times
546
  STqReader*   tqReader;
547

548
  SHashObj*       pVtableMergeHandles;  // key: vtable uid, value: SStreamVtableMergeHandle
549
  SDiskbasedBuf*  pVtableMergeBuf;      // page buffer used by vtable merge
550
  SArray*         pVtableReadyHandles;
551
  STableListInfo* pTableListInfo;
552

553
  uint64_t            groupId;
554
  bool                igCheckGroupId;
555
  struct SUpdateInfo* pUpdateInfo;
556

557
  EStreamScanMode       scanMode;
558
  struct SOperatorInfo* pStreamScanOp;
559
  struct SOperatorInfo* pTableScanOp;
560
  SArray*               childIds;
561
  SPartitionBySupporter partitionSup;
562
  SExprSupp*            pPartScalarSup;
563
  bool                  assignBlockUid;  // assign block uid to groupId, temporarily used for generating rollup SMA.
564
  int32_t               scanWinIndex;    // for state operator
565
  SSDataBlock*          pDeleteDataRes;  // delete data SSDataBlock
566
  int32_t               deleteDataIndex;
567
  STimeWindow           updateWin;
568
  STimeWindowAggSupp    twAggSup;
569
  SSDataBlock*          pUpdateDataRes;
570
  SStreamFillSupporter* pFillSup;
571
  // status for tmq
572
  SNodeList* pGroupTags;
573
  SNode*     pTagCond;
574
  SNode*     pTagIndexCond;
575

576
  // recover
577
  int32_t      blockRecoverTotCnt;
578
  SSDataBlock* pRecoverRes;
579

580
  SSDataBlock*      pCreateTbRes;
581
  int8_t            igCheckUpdate;
582
  int8_t            igExpired;
583
  void*             pState;  // void
584
  SStoreTqReader    readerFn;
585
  SSDataBlock*      pCheckpointRes;
586
  int8_t            pkColType;
587
  int32_t           pkColLen;
588
  bool              useGetResultRange;
589
  STimeWindow       lastScanRange;
590
  SSDataBlock*      pRangeScanRes;  // update SSDataBlock
591
  bool              hasPart;
592

593
  //nonblock data scan
594
  TSKEY                  recalculateInterval;
595
  __compar_fn_t          comparePkColFn;
596
  SScanRange             curRange;
597
  struct SOperatorInfo*  pRecTableScanOp;
598
  bool                   scanAllTables;
599
  SSHashObj*             pRecRangeMap;
600
  SArray*                pRecRangeRes;
601
} SStreamScanInfo;
602

603
typedef struct {
604
  struct SVnode*       vnode;  // todo remove this
605
  SSDataBlock          pRes;   // result SSDataBlock
606
  STsdbReader*         dataReader;
607
  struct SSnapContext* sContext;
608
  SStorageAPI*         pAPI;
609
  STableListInfo*      pTableListInfo;
610
} SStreamRawScanInfo;
611

612
typedef struct STableCountScanSupp {
613
  int16_t dbNameSlotId;
614
  int16_t stbNameSlotId;
615
  int16_t tbCountSlotId;
616
  bool    groupByDbName;
617
  bool    groupByStbName;
618
  char    dbNameFilter[TSDB_DB_NAME_LEN];
619
  char    stbNameFilter[TSDB_TABLE_NAME_LEN];
620
} STableCountScanSupp;
621

622
typedef struct SOptrBasicInfo {
623
  SResultRowInfo resultRowInfo;
624
  SSDataBlock*   pRes;
625
  bool           mergeResultBlock;
626
  int32_t        inputTsOrder;
627
  int32_t        outputTsOrder;
628
} SOptrBasicInfo;
629

630
typedef struct SIntervalAggOperatorInfo {
631
  SOptrBasicInfo     binfo;              // basic info
632
  SAggSupporter      aggSup;             // aggregate supporter
633
  SExprSupp          scalarSupp;         // supporter for perform scalar function
634
  SGroupResInfo      groupResInfo;       // multiple results build supporter
635
  SInterval          interval;           // interval info
636
  int32_t            primaryTsIndex;     // primary time stamp slot id from result of downstream operator.
637
  STimeWindow        win;                // query time range
638
  bool               timeWindowInterpo;  // interpolation needed or not
639
  SArray*            pInterpCols;        // interpolation columns
640
  EOPTR_EXEC_MODEL   execModel;          // operator execution model [batch model|stream model]
641
  STimeWindowAggSupp twAggSup;
642
  SArray*            pPrevValues;  //  SArray<SGroupKeys> used to keep the previous not null value for interpolation.
643
  bool               cleanGroupResInfo;
644
  struct SOperatorInfo* pOperator;
645
  // for limit optimization
646
  bool          limited;
647
  int64_t       limit;
648
  bool          slimited;
649
  int64_t       slimit;
650
  uint64_t      curGroupId;  // initialize to UINT64_MAX
651
  uint64_t      handledGroupNum;
652
  BoundedQueue* pBQ;
653
} SIntervalAggOperatorInfo;
654

655
typedef struct SMergeAlignedIntervalAggOperatorInfo {
656
  SIntervalAggOperatorInfo* intervalAggOperatorInfo;
657

658
  uint64_t     groupId;  // current groupId
659
  int64_t      curTs;    // current ts
660
  SSDataBlock* prefetchedBlock;
661
  SResultRow*  pResultRow;
662
} SMergeAlignedIntervalAggOperatorInfo;
663

664
typedef struct SOpCheckPointInfo {
665
  uint16_t  checkPointId;
666
  SHashObj* children;  // key:child id
667
} SOpCheckPointInfo;
668

669
typedef struct SDataGroupInfo {
670
  uint64_t groupId;
671
  int64_t  numOfRows;
672
  SArray*  pPageList;
673
  SArray*  blockForNotLoaded;   // SSDataBlock that data is not loaded
674
  int32_t  offsetForNotLoaded;  // read offset for SSDataBlock that data is not loaded
675
} SDataGroupInfo;
676

677
typedef struct SWindowRowsSup {
678
  STimeWindow win;
679
  TSKEY       prevTs;  // previous timestamp, used for window aggregation
680
  int32_t     startRowIndex;
681
  int32_t     numOfRows;
682
  uint64_t    groupId;
683
  uint32_t    numNullRows;  // number of continuous rows with null state col
684
  TSKEY       lastTs;  // last row's timestamp, used for checking duplicated ts
685
} SWindowRowsSup;
686

687
// return true if there are continuous rows with null state col
688
// state window operator needs to handle these rows specially
689
static inline bool hasContinuousNullRows(SWindowRowsSup* pRowSup) {
2,147,483,647✔
690
  return pRowSup->numNullRows > 0;
2,147,483,647✔
691
}
692

693
// reset on initialization or found of a row with non-null state col
694
static inline void resetNumNullRows(SWindowRowsSup* pRowSup) {
2,147,483,647✔
695
  pRowSup->numNullRows = 0;
2,147,483,647✔
696
}
2,147,483,647✔
697

698
static inline void resetWindowRowsSup(SWindowRowsSup* pRowSup) {
10,254,779✔
699
  if (NULL == pRowSup) {
10,254,779✔
UNCOV
700
    return;
×
701
  }
702

703
  pRowSup->win.skey = pRowSup->win.ekey = 0;
10,254,779✔
704
  pRowSup->prevTs = INT64_MIN;
10,254,779✔
705
  pRowSup->startRowIndex = pRowSup->groupId = 0;
10,254,779✔
706
  pRowSup->numOfRows = pRowSup->numNullRows = 0;
10,254,779✔
707
}
708

709
typedef int32_t (*AggImplFn)(struct SOperatorInfo* pOperator, SSDataBlock* pBlock);
710

711
typedef struct SSessionAggOperatorInfo {
712
  SOptrBasicInfo        binfo;
713
  SAggSupporter         aggSup;
714
  SExprSupp             scalarSupp;  // supporter for perform scalar function
715
  SGroupResInfo         groupResInfo;
716
  SWindowRowsSup        winSup;
717
  bool                  reptScan;  // next round scan
718
  int64_t               gap;       // session window gap
719
  int32_t               tsSlotId;  // primary timestamp slot id
720
  STimeWindowAggSupp    twAggSup;
721
  struct SOperatorInfo* pOperator;
722
  bool                  cleanGroupResInfo;
723
} SSessionAggOperatorInfo;
724

725
typedef struct SStateWindowOperatorInfo {
726
  SOptrBasicInfo        binfo;
727
  SAggSupporter         aggSup;
728
  SExprSupp             scalarSup;
729
  SGroupResInfo         groupResInfo;
730
  SWindowRowsSup        winSup;
731
  SColumn               stateCol;
732
  bool                  hasKey;    // has key means the state window has started
733
  SStateKeys            stateKey;
734
  int32_t               tsSlotId;  // primary timestamp column slot id
735
  STimeWindowAggSupp    twAggSup;
736
  struct SOperatorInfo* pOperator;
737
  bool                  cleanGroupResInfo;
738
  STrueForInfo          trueForInfo;
739
  EStateWinExtendOption extendOption;
740
} SStateWindowOperatorInfo;
741

742

743
typedef struct SEventWindowOperatorInfo {
744
  SOptrBasicInfo     binfo;
745
  SAggSupporter      aggSup;
746
  SExprSupp          scalarSup;
747
  SWindowRowsSup     winSup;
748
  int32_t            tsSlotId;  // primary timestamp column slot id
749
  STimeWindowAggSupp twAggSup;
750
  uint64_t           groupId;  // current group id, used to identify the data block from different groups
751
  SFilterInfo*       pStartCondInfo;
752
  SFilterInfo*       pEndCondInfo;
753
  bool               inWindow;
754
  SResultRow*        pRow;
755
  SSDataBlock*       pPreDataBlock;
756
  struct SOperatorInfo*     pOperator;
757
  STrueForInfo              trueForInfo;
758
} SEventWindowOperatorInfo;
759

760
#define OPTR_IS_OPENED(_optr)  (((_optr)->status & OP_OPENED) == OP_OPENED)
761
#define OPTR_SET_OPENED(_optr) ((_optr)->status |= OP_OPENED)
762
#define OPTR_CLR_OPENED(_optr) ((_optr)->status &= ~OP_OPENED)
763

764
SSchemaWrapper* extractQueriedColumnSchema(SScanPhysiNode* pScanNode);
765

766
int32_t initQueriedTableSchemaInfo(SReadHandle* pHandle, SScanPhysiNode* pScanNode, const char* dbName,
767
                                   SExecTaskInfo* pTaskInfo);
768
void    cleanupQueriedTableScanInfo(void* p);
769

770
void initBasicInfo(SOptrBasicInfo* pInfo, SSDataBlock* pBlock);
771
void cleanupBasicInfo(SOptrBasicInfo* pInfo);
772

773
int32_t initExprSupp(SExprSupp* pSup, SExprInfo* pExprInfo, int32_t numOfExpr, SFunctionStateStore* pStore);
774
void checkIndefRowsFuncs(SExprSupp* pSup);
775
void    cleanupExprSupp(SExprSupp* pSup);
776
void    cleanupExprSuppWithoutFilter(SExprSupp* pSupp);
777

778
void     cleanupResultInfoInHashMap(SExecTaskInfo* pTaskInfo, SExprSupp* pSup, SDiskbasedBuf* pBuf,
779
                                    SGroupResInfo* pGroupResInfo, SSHashObj* pHashmap);
780
void     cleanupResultInfo(SExecTaskInfo* pTaskInfo, SExprSupp* pSup, SGroupResInfo* pGroupResInfo,
781
                           SAggSupporter *pAggSup, bool cleanHashmap);
782
void     cleanupResultInfoWithoutHash(SExecTaskInfo* pTaskInfo, SExprSupp* pSup, SDiskbasedBuf* pBuf,
783
                                      SGroupResInfo* pGroupResInfo);
784

785
int32_t initAggSup(SExprSupp* pSup, SAggSupporter* pAggSup, SExprInfo* pExprInfo, int32_t numOfCols, size_t keyBufSize,
786
                   const char* pkey, void* pState, SFunctionStateStore* pStore);
787
void    cleanupAggSup(SAggSupporter* pAggSup);
788

789
void initResultSizeInfo(SResultInfo* pResultInfo, int32_t numOfRows);
790

791
void doBuildResultDatablock(struct SOperatorInfo* pOperator, SOptrBasicInfo* pbInfo, SGroupResInfo* pGroupResInfo,
792
                            SDiskbasedBuf* pBuf);
793

794
/**
795
 * @brief copydata from hash table, instead of copying from SGroupResInfo's pRow
796
 */
797
void doCopyToSDataBlockByHash(SExecTaskInfo* pTaskInfo, SSDataBlock* pBlock, SExprSupp* pSup, SDiskbasedBuf* pBuf,
798
                              SGroupResInfo* pGroupResInfo, SSHashObj* pHashmap, int32_t threshold, bool ignoreGroup);
799
void doCopyToSDataBlock(SExecTaskInfo* pTaskInfo, SSDataBlock* pBlock, SExprSupp* pSup, SDiskbasedBuf* pBuf,
800
                        SGroupResInfo* pGroupResInfo, int32_t threshold, bool ignoreGroup, STrueForInfo *pTrueForInfo);
801

802
bool hasLimitOffsetInfo(SLimitInfo* pLimitInfo);
803
bool hasSlimitOffsetInfo(SLimitInfo* pLimitInfo);
804
void initLimitInfo(const SNode* pLimit, const SNode* pSLimit, SLimitInfo* pLimitInfo);
805
void resetLimitInfoForNextGroup(SLimitInfo* pLimitInfo);
806
bool applyLimitOffset(SLimitInfo* pLimitInfo, SSDataBlock* pBlock, SExecTaskInfo* pTaskInfo);
807

808
int32_t applyAggFunctionOnPartialTuples(SExecTaskInfo* taskInfo, SqlFunctionCtx* pCtx, SColumnInfoData* pTimeWindowData,
809
                                        int32_t offset, int32_t forwardStep, int32_t numOfTotal, int32_t numOfOutput);
810

811
int32_t setFunctionResultOutput(struct SOperatorInfo* pOperator, SOptrBasicInfo* pInfo, SAggSupporter* pSup, int32_t stage,
812
                             int32_t numOfExprs);
813
int32_t      setRowTsColumnOutputInfo(SqlFunctionCtx* pCtx, int32_t numOfCols, SArray** pResList);                             
814
int32_t extractDataBlockFromFetchRsp(SSDataBlock* pRes, char* pData, SArray* pColList, char** pNextStart, bool isVstbScan);
815
void    updateLoadRemoteInfo(SLoadRemoteDataInfo* pInfo, int64_t numOfRows, int32_t dataLen, int64_t startTs,
816
                             struct SOperatorInfo* pOperator);
817

818
STimeWindow getFirstQualifiedTimeWindow(int64_t ts, STimeWindow* pWindow, SInterval* pInterval, int32_t order);
819
int32_t     getBufferPgSize(int32_t rowSize, uint32_t* defaultPgsz, int64_t* defaultBufsz);
820

821
extern void doDestroyExchangeOperatorInfo(void* param);
822

823
int32_t doFilter(SSDataBlock* pBlock, SFilterInfo* pFilterInfo, SColMatchInfo* pColMatchInfo, SColumnInfoData** pRet);
824
int32_t addTagPseudoColumnData(SReadHandle* pHandle, const SExprInfo* pExpr, int32_t numOfExpr, SSDataBlock* pBlock,
825
                               int32_t rows, SExecTaskInfo* pTask, STableMetaCacheInfo* pCache);
826

827
int32_t appendOneRowToDataBlock(SSDataBlock* pBlock, STupleHandle* pTupleHandle);
828
int32_t setResultRowInitCtx(SResultRow* pResult, SqlFunctionCtx* pCtx, int32_t numOfOutput,
829
                            int32_t* rowEntryInfoOffset);
830
void    clearResultRowInitFlag(SqlFunctionCtx* pCtx, int32_t numOfOutput);
831

832
SResultRow* doSetResultOutBufByKey(SDiskbasedBuf* pResultBuf, SResultRowInfo* pResultRowInfo, char* pData,
833
                                   int32_t bytes, bool masterscan, uint64_t groupId, SExecTaskInfo* pTaskInfo,
834
                                   bool isIntervalQuery, SAggSupporter* pSup, bool keepGroup);
835

836
int32_t projectApplyFunctions(SExprInfo* pExpr, SSDataBlock* pResult, SSDataBlock* pSrcBlock, SqlFunctionCtx* pCtx,
837
                              int32_t numOfOutput, SArray* pPseudoList, const void* pExtraParams);
838
int32_t projectApplyFunctionsWithSelect(SExprInfo* pExpr, SSDataBlock* pResult, SSDataBlock* pSrcBlock,
839
                                        SqlFunctionCtx* pCtx, int32_t numOfOutput, SArray* pPseudoList,
840
                                        const void* pExtraParams, bool doSelectFunc, bool hasIndefRowsFunc);
841

842
int32_t setInputDataBlock(SExprSupp* pExprSupp, SSDataBlock* pBlock, int32_t order, int32_t scanFlag,
843
                          bool createDummyCol);
844

845
int32_t checkForQueryBuf(size_t numOfTables);
846

847
int32_t createDataSinkParam(SDataSinkNode* pNode, void** pParam, SExecTaskInfo* pTask, SReadHandle* readHandle);
848

849
STimeWindow getActiveTimeWindow(SDiskbasedBuf* pBuf, SResultRowInfo* pResultRowInfo, int64_t ts, SInterval* pInterval,
850
                                int32_t order);
851
int32_t getNumOfRowsInTimeWindow(SDataBlockInfo* pDataBlockInfo, TSKEY* pPrimaryColumn, int32_t startPos, TSKEY ekey,
852
                                 __block_search_fn_t searchFn, STableQueryInfo* item, int32_t order);
853
int32_t binarySearchForKey(char* pValue, int num, TSKEY key, int order);
854
SResultRow* getNewResultRow(SDiskbasedBuf* pResultBuf, int32_t* currentPageId, int32_t interBufSize);
855
bool isInTimeWindow(STimeWindow* pWin, TSKEY ts, int64_t gap);
856
bool functionNeedToExecute(SqlFunctionCtx* pCtx);
857
bool isOverdue(TSKEY ts, STimeWindowAggSupp* pSup);
858
bool isCloseWindow(STimeWindow* pWin, STimeWindowAggSupp* pSup);
859

860
uint64_t calGroupIdByData(SPartitionBySupporter* pParSup, SExprSupp* pExprSup, SSDataBlock* pBlock, int32_t rowId);
861

862
void finalizeResultRows(SDiskbasedBuf* pBuf, SResultRowPosition* resultRowPosition, SExprSupp* pSup,
863
                        SSDataBlock* pBlock, SExecTaskInfo* pTaskInfo);
864

865
bool    groupbyTbname(SNodeList* pGroupList);
866
int32_t getForwardStepsInBlock(int32_t numOfRows, __block_search_fn_t searchFn, TSKEY ekey, int32_t pos, int32_t order,
867
                               int64_t* pData);
868
SSDataBlock* buildCreateTableBlock(SExprSupp* tbName, SExprSupp* tag);
869
SExprInfo*   createExpr(SNodeList* pNodeList, int32_t* numOfExprs);
870

871
int32_t copyResultrowToDataBlock(SExprInfo* pExprInfo, int32_t numOfExprs, SResultRow* pRow, SqlFunctionCtx* pCtx,
872
                                 SSDataBlock* pBlock, const int32_t* rowEntryOffset, SExecTaskInfo* pTaskInfo);
873
void doUpdateNumOfRows(SqlFunctionCtx* pCtx, SResultRow* pRow, int32_t numOfExprs, const int32_t* rowEntryOffset);
874

875
void    streamOpReleaseState(struct SOperatorInfo* pOperator);
876
void    streamOpReloadState(struct SOperatorInfo* pOperator);
877
void    clearGroupResInfo(SGroupResInfo* pGroupResInfo);
878
int32_t initBasicInfoEx(SOptrBasicInfo* pBasicInfo, SExprSupp* pSup, SExprInfo* pExprInfo, int32_t numOfCols,
879
                        SSDataBlock* pResultBlock, SFunctionStateStore* pStore);
880
int32_t getMaxTsWins(const SArray* pAllWins, SArray* pMaxWins);
881
void    initGroupResInfoFromArrayList(SGroupResInfo* pGroupResInfo, SArray* pArrayList);
882
void    getSessionHashKey(const SSessionKey* pKey, SSessionKey* pHashKey);
883
int32_t getAllSessionWindow(SSHashObj* pHashMap, SSHashObj* pStUpdated);
884
int32_t closeSessionWindow(SSHashObj* pHashMap, STimeWindowAggSupp* pTwSup, SSHashObj* pClosed);
885
int32_t copyUpdateResult(SSHashObj** ppWinUpdated, SArray* pUpdated, __compar_fn_t compar);
886
int32_t sessionKeyCompareAsc(const void* pKey1, const void* pKey2);
887
void    removeSessionDeleteResults(SSHashObj* pHashMap, SArray* pWins);
888
int32_t doOneWindowAggImpl(SColumnInfoData* pTimeWindowData, SResultWindowInfo* pCurWin, SResultRow** pResult,
889
                           int32_t startIndex, int32_t winRows, int32_t rows, int32_t numOutput,
890
                           struct SOperatorInfo* pOperator, int64_t winDelta);
891
void    setSessionWinOutputInfo(SSHashObj* pStUpdated, SResultWindowInfo* pWinInfo);
892
int32_t saveResult(SResultWindowInfo winInfo, SSHashObj* pStUpdated);
893
int32_t saveDeleteRes(SSHashObj* pStDelete, SSessionKey key);
894
void    doBuildDeleteDataBlock(struct SOperatorInfo* pOp, SSHashObj* pStDeleted, SSDataBlock* pBlock, void** Ite,
895
                               SGroupResInfo* pGroupResInfo);
896
void    doBuildSessionResult(struct SOperatorInfo* pOperator, void* pState, SGroupResInfo* pGroupResInfo,
897
                             SSDataBlock* pBlock, SArray* pSessionKeys);
898
void    resetWinRange(STimeWindow* winRange);
899
int64_t getDeleteMark(SWindowPhysiNode* pWinPhyNode, int64_t interval);
900
void    resetUnCloseSessionWinInfo(SSHashObj* winMap);
901
void    setStreamOperatorCompleted(struct SOperatorInfo* pOperator);
902
void    destroyFlusedPos(void* pRes);
903
bool    isIrowtsPseudoColumn(SExprInfo* pExprInfo);
904
bool    isIsfilledPseudoColumn(SExprInfo* pExprInfo);
905
bool    isInterpFunc(SExprInfo* pExprInfo);
906
bool    isIrowtsOriginPseudoColumn(SExprInfo* pExprInfo);
907

908
int32_t encodeSSessionKey(void** buf, SSessionKey* key);
909
void*   decodeSSessionKey(void* buf, SSessionKey* key);
910
int32_t encodeSResultWindowInfo(void** buf, SResultWindowInfo* key, int32_t outLen);
911
void*   decodeSResultWindowInfo(void* buf, SResultWindowInfo* key, int32_t outLen);
912
int32_t encodeSTimeWindowAggSupp(void** buf, STimeWindowAggSupp* pTwAggSup);
913
void*   decodeSTimeWindowAggSupp(void* buf, STimeWindowAggSupp* pTwAggSup);
914

915
void    destroyOperatorParamValue(void* pValues);
916
int32_t mergeOperatorParams(SOperatorParam* pDst, SOperatorParam* pSrc);
917
int32_t buildTableScanOperatorParam(SOperatorParam** ppRes, SArray* pUidList, int32_t srcOpType, bool tableSeq);
918
int32_t buildTableScanOperatorParamEx(SOperatorParam** ppRes, SArray* pUidList, int32_t srcOpType, SOrgTbInfo *pMap, bool tableSeq, STimeWindow *window, bool isNewParam, ETableScanDynType type);
919
int32_t buildTableScanOperatorParamNotify(SOperatorParam** ppRes,
920
                                          int32_t srcOpType, TSKEY notifyTs);
921
void    freeExchangeGetBasicOperatorParam(void* pParam);
922
void    freeResetOperatorParams(struct SOperatorInfo* pOperator, SOperatorParamType type, bool allFree);
923
int32_t getNextBlockFromDownstreamImpl(struct SOperatorInfo* pOperator, int32_t idx, bool clearParam,
924
                                       SSDataBlock** pResBlock);
925

926
int32_t saveDeleteInfo(SArray* pWins, SSessionKey key);
927
int32_t copyDeleteWindowInfo(SArray* pResWins, SSHashObj* pStDeleted);
928
int32_t copyDeleteSessionKey(SSHashObj* source, SSHashObj* dest);
929

930
bool inSlidingWindow(const SInterval* pInterval, const STimeWindow* pWin, const SDataBlockInfo* pBlockInfo);
931
bool inCalSlidingWindow(const SInterval* pInterval, const STimeWindow* pWin, TSKEY calStart, TSKEY calEnd, EStreamType blockType);
932
bool compareVal(const char* v, const SStateKeys* pKey);
933
bool inWinRange(STimeWindow* range, STimeWindow* cur);
934

935
int32_t getNextQualifiedWindow(SInterval* pInterval, STimeWindow* pNext, SDataBlockInfo* pDataBlockInfo,
936
                               TSKEY* primaryKeys, int32_t prevPosition, int32_t order);
937
int32_t extractQualifiedTupleByFilterResult(SSDataBlock* pBlock, const SColumnInfoData* p, int32_t status);
938
bool    getIgoreNullRes(SExprSupp* pExprSup);
939
bool    checkNullRow(SExprSupp* pExprSup, SSDataBlock* pSrcBlock, int32_t index, bool ignoreNull);
940
STrueForInfo* getTrueForInfo(struct SOperatorInfo* pOperator);
941

942
void    destroyTmqScanOperatorInfo(void* param);
943
int32_t checkUpdateData(SStreamScanInfo* pInfo, bool invertible, SSDataBlock* pBlock, bool out);
944
void resetBasicOperatorState(SOptrBasicInfo* pBasicInfo);
945

946
int32_t addNewResultRowBuf(SResultRow* pWindowRes, SDiskbasedBuf* pResultBuf, uint32_t size);
947

948
#ifdef __cplusplus
949
}
950
#endif
951

952
#endif  // TDENGINE_EXECUTORINT_H
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