Merge pull request #28784 from taosdata/fix/TD-32861-main

fix(query)[TD-32861]. fix that WHERE condition not work in statements with INTERP function
This commit is contained in:
Shengliang Guan 2024-11-19 09:40:28 +08:00 committed by GitHub
commit 99bebacd8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 766 additions and 11 deletions

View File

@ -250,6 +250,7 @@ typedef struct SQueryTableDataCond {
int32_t type; // data block load type:
bool skipRollup;
STimeWindow twindows;
STimeWindow extTwindows[2];
int64_t startVersion;
int64_t endVersion;
bool notLoadData; // response the actual data, not only the rows in the attribute of info.row of ssdatablock

View File

@ -1134,7 +1134,12 @@ static int32_t getCurrentBlockInfo(SDataBlockIter* pBlockIter, SFileDataBlockInf
*pInfo = NULL;
size_t num = TARRAY_SIZE(pBlockIter->blockList);
TSDB_CHECK_CONDITION(num != 0, code, lino, _end, TSDB_CODE_INVALID_PARA);
if (num == 0) {
// Some callers would attempt to call this function. Filter out certain normal cases and return directly to avoid
// generating excessive unnecessary error logs.
TSDB_CHECK_CONDITION(num == pBlockIter->numOfBlocks, code, lino, _end, TSDB_CODE_INVALID_PARA);
return TSDB_CODE_INVALID_PARA;
}
*pInfo = taosArrayGet(pBlockIter->blockList, pBlockIter->index);
TSDB_CHECK_NULL(*pInfo, code, lino, _end, TSDB_CODE_INVALID_PARA);
@ -5530,12 +5535,10 @@ int32_t tsdbReaderOpen2(void* pVnode, SQueryTableDataCond* pCond, void* pTableLi
// update the SQueryTableDataCond to create inner reader
int32_t order = pCond->order;
if (order == TSDB_ORDER_ASC) {
pCond->twindows.ekey = window.skey - 1;
pCond->twindows.skey = INT64_MIN;
pCond->twindows = pCond->extTwindows[0];
pCond->order = TSDB_ORDER_DESC;
} else {
pCond->twindows.skey = window.ekey + 1;
pCond->twindows.ekey = INT64_MAX;
pCond->twindows = pCond->extTwindows[1];
pCond->order = TSDB_ORDER_ASC;
}
@ -5544,11 +5547,9 @@ int32_t tsdbReaderOpen2(void* pVnode, SQueryTableDataCond* pCond, void* pTableLi
TSDB_CHECK_CODE(code, lino, _end);
if (order == TSDB_ORDER_ASC) {
pCond->twindows.skey = window.ekey + 1;
pCond->twindows.ekey = INT64_MAX;
pCond->twindows = pCond->extTwindows[1];
} else {
pCond->twindows.skey = INT64_MIN;
pCond->twindows.ekey = window.ekey - 1;
pCond->twindows = pCond->extTwindows[0];
}
pCond->order = order;

View File

@ -1131,6 +1131,47 @@ static int32_t extractPkColumnFromFuncs(SNodeList* pFuncs, bool* pHasPk, SColumn
return TSDB_CODE_SUCCESS;
}
/**
* @brief Determine the actual time range for reading data based on the RANGE clause and the WHERE conditions.
* @param[in] cond The range specified by WHERE condition.
* @param[in] range The range specified by RANGE clause.
* @param[out] twindow The range to be read in DESC order, and only one record is needed.
* @param[out] extTwindow The external range to read for only one record, which is used for FILL clause.
* @note `cond` and `twindow` may be the same address.
*/
static int32_t getQueryExtWindow(const STimeWindow* cond, const STimeWindow* range, STimeWindow* twindow,
STimeWindow* extTwindows) {
int32_t code = TSDB_CODE_SUCCESS;
int32_t lino = 0;
STimeWindow tempWindow;
if (cond->skey > cond->ekey || range->skey > range->ekey) {
*twindow = extTwindows[0] = extTwindows[1] = TSWINDOW_DESC_INITIALIZER;
return code;
}
if (range->ekey < cond->skey) {
extTwindows[1] = *cond;
*twindow = extTwindows[0] = TSWINDOW_DESC_INITIALIZER;
return code;
}
if (cond->ekey < range->skey) {
extTwindows[0] = *cond;
*twindow = extTwindows[1] = TSWINDOW_DESC_INITIALIZER;
return code;
}
// Only scan data in the time range intersecion.
extTwindows[0] = extTwindows[1] = *cond;
twindow->skey = TMAX(cond->skey, range->skey);
twindow->ekey = TMIN(cond->ekey, range->ekey);
extTwindows[0].ekey = twindow->skey - 1;
extTwindows[1].skey = twindow->ekey + 1;
return code;
}
int32_t createTimeSliceOperatorInfo(SOperatorInfo* downstream, SPhysiNode* pPhyNode, SExecTaskInfo* pTaskInfo, SOperatorInfo** pOptrInfo) {
QRY_PARAM_CHECK(pOptrInfo);
@ -1206,8 +1247,10 @@ int32_t createTimeSliceOperatorInfo(SOperatorInfo* downstream, SPhysiNode* pPhyN
if (downstream->operatorType == QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN) {
STableScanInfo* pScanInfo = (STableScanInfo*)downstream->info;
pScanInfo->base.cond.twindows = pInfo->win;
pScanInfo->base.cond.type = TIMEWINDOW_RANGE_EXTERNAL;
SQueryTableDataCond *cond = &pScanInfo->base.cond;
cond->type = TIMEWINDOW_RANGE_EXTERNAL;
code = getQueryExtWindow(&cond->twindows, &pInfo->win, &cond->twindows, cond->extTwindows);
QUERY_CHECK_CODE(code, lino, _error);
}
setOperatorInfo(pOperator, "TimeSliceOperator", QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC, false, OP_NOT_OPENED, pInfo,

View File

@ -366,3 +366,652 @@ taos> select _irowts as irowts ,tbname as table_name, c2 as c_c2, c3 as c_c3, _i
2020-02-01 00:00:16.000 | td32727 | 10 | 10 | true | 1 |
2020-02-01 00:00:16.000 | td32727 | 15 | 15 | true | 1 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(null);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(value, 1);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(prev);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(next);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(linear);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(null);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(value, 1);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(prev);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(next);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(linear);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(null);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(value, 1);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(prev);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(next);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(linear);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(null);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | NULL |
2020-01-01 00:00:23.000 | true | NULL |
2020-01-01 00:00:24.000 | true | NULL |
2020-01-01 00:00:25.000 | true | NULL |
2020-01-01 00:00:26.000 | true | NULL |
2020-01-01 00:00:27.000 | true | NULL |
2020-01-01 00:00:28.000 | true | NULL |
2020-01-01 00:00:29.000 | true | NULL |
2020-01-01 00:00:30.000 | true | NULL |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(value, 1);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | 1 |
2020-01-01 00:00:23.000 | true | 1 |
2020-01-01 00:00:24.000 | true | 1 |
2020-01-01 00:00:25.000 | true | 1 |
2020-01-01 00:00:26.000 | true | 1 |
2020-01-01 00:00:27.000 | true | 1 |
2020-01-01 00:00:28.000 | true | 1 |
2020-01-01 00:00:29.000 | true | 1 |
2020-01-01 00:00:30.000 | true | 1 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(prev);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | 21 |
2020-01-01 00:00:23.000 | true | 21 |
2020-01-01 00:00:24.000 | true | 21 |
2020-01-01 00:00:25.000 | true | 21 |
2020-01-01 00:00:26.000 | true | 21 |
2020-01-01 00:00:27.000 | true | 21 |
2020-01-01 00:00:28.000 | true | 21 |
2020-01-01 00:00:29.000 | true | 21 |
2020-01-01 00:00:30.000 | true | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(next);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(linear);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(null);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | NULL |
2020-01-01 00:00:17.000 | true | NULL |
2020-01-01 00:00:18.000 | true | NULL |
2020-01-01 00:00:19.000 | true | NULL |
2020-01-01 00:00:20.000 | true | NULL |
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | NULL |
2020-01-01 00:00:23.000 | true | NULL |
2020-01-01 00:00:24.000 | true | NULL |
2020-01-01 00:00:25.000 | true | NULL |
2020-01-01 00:00:26.000 | true | NULL |
2020-01-01 00:00:27.000 | true | NULL |
2020-01-01 00:00:28.000 | true | NULL |
2020-01-01 00:00:29.000 | true | NULL |
2020-01-01 00:00:30.000 | true | NULL |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(value, 1);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 1 |
2020-01-01 00:00:17.000 | true | 1 |
2020-01-01 00:00:18.000 | true | 1 |
2020-01-01 00:00:19.000 | true | 1 |
2020-01-01 00:00:20.000 | true | 1 |
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | 1 |
2020-01-01 00:00:23.000 | true | 1 |
2020-01-01 00:00:24.000 | true | 1 |
2020-01-01 00:00:25.000 | true | 1 |
2020-01-01 00:00:26.000 | true | 1 |
2020-01-01 00:00:27.000 | true | 1 |
2020-01-01 00:00:28.000 | true | 1 |
2020-01-01 00:00:29.000 | true | 1 |
2020-01-01 00:00:30.000 | true | 1 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(prev);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 15 |
2020-01-01 00:00:17.000 | true | 15 |
2020-01-01 00:00:18.000 | true | 15 |
2020-01-01 00:00:19.000 | true | 15 |
2020-01-01 00:00:20.000 | true | 15 |
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | 21 |
2020-01-01 00:00:23.000 | true | 21 |
2020-01-01 00:00:24.000 | true | 21 |
2020-01-01 00:00:25.000 | true | 21 |
2020-01-01 00:00:26.000 | true | 21 |
2020-01-01 00:00:27.000 | true | 21 |
2020-01-01 00:00:28.000 | true | 21 |
2020-01-01 00:00:29.000 | true | 21 |
2020-01-01 00:00:30.000 | true | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(next);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 21 |
2020-01-01 00:00:17.000 | true | 21 |
2020-01-01 00:00:18.000 | true | 21 |
2020-01-01 00:00:19.000 | true | 21 |
2020-01-01 00:00:20.000 | true | 21 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(linear);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 16 |
2020-01-01 00:00:17.000 | true | 17 |
2020-01-01 00:00:18.000 | true | 18 |
2020-01-01 00:00:19.000 | true | 19 |
2020-01-01 00:00:20.000 | true | 20 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(null);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | NULL |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | NULL |
2020-01-01 00:00:05.000 | true | NULL |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | NULL |
2020-01-01 00:00:08.000 | true | NULL |
2020-01-01 00:00:09.000 | true | NULL |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | NULL |
2020-01-01 00:00:12.000 | true | NULL |
2020-01-01 00:00:13.000 | true | NULL |
2020-01-01 00:00:14.000 | true | NULL |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | NULL |
2020-01-01 00:00:17.000 | true | NULL |
2020-01-01 00:00:18.000 | true | NULL |
2020-01-01 00:00:19.000 | true | NULL |
2020-01-01 00:00:20.000 | true | NULL |
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | NULL |
2020-01-01 00:00:23.000 | true | NULL |
2020-01-01 00:00:24.000 | true | NULL |
2020-01-01 00:00:25.000 | true | NULL |
2020-01-01 00:00:26.000 | true | NULL |
2020-01-01 00:00:27.000 | true | NULL |
2020-01-01 00:00:28.000 | true | NULL |
2020-01-01 00:00:29.000 | true | NULL |
2020-01-01 00:00:30.000 | true | NULL |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(value, 1);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 1 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 1 |
2020-01-01 00:00:05.000 | true | 1 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 1 |
2020-01-01 00:00:08.000 | true | 1 |
2020-01-01 00:00:09.000 | true | 1 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 1 |
2020-01-01 00:00:12.000 | true | 1 |
2020-01-01 00:00:13.000 | true | 1 |
2020-01-01 00:00:14.000 | true | 1 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 1 |
2020-01-01 00:00:17.000 | true | 1 |
2020-01-01 00:00:18.000 | true | 1 |
2020-01-01 00:00:19.000 | true | 1 |
2020-01-01 00:00:20.000 | true | 1 |
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | 1 |
2020-01-01 00:00:23.000 | true | 1 |
2020-01-01 00:00:24.000 | true | 1 |
2020-01-01 00:00:25.000 | true | 1 |
2020-01-01 00:00:26.000 | true | 1 |
2020-01-01 00:00:27.000 | true | 1 |
2020-01-01 00:00:28.000 | true | 1 |
2020-01-01 00:00:29.000 | true | 1 |
2020-01-01 00:00:30.000 | true | 1 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(prev);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 1 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 3 |
2020-01-01 00:00:05.000 | true | 3 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 6 |
2020-01-01 00:00:08.000 | true | 6 |
2020-01-01 00:00:09.000 | true | 6 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 10 |
2020-01-01 00:00:12.000 | true | 10 |
2020-01-01 00:00:13.000 | true | 10 |
2020-01-01 00:00:14.000 | true | 10 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 15 |
2020-01-01 00:00:17.000 | true | 15 |
2020-01-01 00:00:18.000 | true | 15 |
2020-01-01 00:00:19.000 | true | 15 |
2020-01-01 00:00:20.000 | true | 15 |
2020-01-01 00:00:21.000 | false | 21 |
2020-01-01 00:00:22.000 | true | 21 |
2020-01-01 00:00:23.000 | true | 21 |
2020-01-01 00:00:24.000 | true | 21 |
2020-01-01 00:00:25.000 | true | 21 |
2020-01-01 00:00:26.000 | true | 21 |
2020-01-01 00:00:27.000 | true | 21 |
2020-01-01 00:00:28.000 | true | 21 |
2020-01-01 00:00:29.000 | true | 21 |
2020-01-01 00:00:30.000 | true | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(next);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 3 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 6 |
2020-01-01 00:00:05.000 | true | 6 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 10 |
2020-01-01 00:00:08.000 | true | 10 |
2020-01-01 00:00:09.000 | true | 10 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 15 |
2020-01-01 00:00:12.000 | true | 15 |
2020-01-01 00:00:13.000 | true | 15 |
2020-01-01 00:00:14.000 | true | 15 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 21 |
2020-01-01 00:00:17.000 | true | 21 |
2020-01-01 00:00:18.000 | true | 21 |
2020-01-01 00:00:19.000 | true | 21 |
2020-01-01 00:00:20.000 | true | 21 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(linear);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 2 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 4 |
2020-01-01 00:00:05.000 | true | 5 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 7 |
2020-01-01 00:00:08.000 | true | 8 |
2020-01-01 00:00:09.000 | true | 9 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 11 |
2020-01-01 00:00:12.000 | true | 12 |
2020-01-01 00:00:13.000 | true | 13 |
2020-01-01 00:00:14.000 | true | 14 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 16 |
2020-01-01 00:00:17.000 | true | 17 |
2020-01-01 00:00:18.000 | true | 18 |
2020-01-01 00:00:19.000 | true | 19 |
2020-01-01 00:00:20.000 | true | 20 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | NULL |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | NULL |
2020-01-01 00:00:05.000 | true | NULL |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | NULL |
2020-01-01 00:00:08.000 | true | NULL |
2020-01-01 00:00:09.000 | true | NULL |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | NULL |
2020-01-01 00:00:12.000 | true | NULL |
2020-01-01 00:00:13.000 | true | NULL |
2020-01-01 00:00:14.000 | true | NULL |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | NULL |
2020-01-01 00:00:17.000 | true | NULL |
2020-01-01 00:00:18.000 | true | NULL |
2020-01-01 00:00:19.000 | true | NULL |
2020-01-01 00:00:20.000 | true | NULL |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 1 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 1 |
2020-01-01 00:00:05.000 | true | 1 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 1 |
2020-01-01 00:00:08.000 | true | 1 |
2020-01-01 00:00:09.000 | true | 1 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 1 |
2020-01-01 00:00:12.000 | true | 1 |
2020-01-01 00:00:13.000 | true | 1 |
2020-01-01 00:00:14.000 | true | 1 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 1 |
2020-01-01 00:00:17.000 | true | 1 |
2020-01-01 00:00:18.000 | true | 1 |
2020-01-01 00:00:19.000 | true | 1 |
2020-01-01 00:00:20.000 | true | 1 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 1 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 3 |
2020-01-01 00:00:05.000 | true | 3 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 6 |
2020-01-01 00:00:08.000 | true | 6 |
2020-01-01 00:00:09.000 | true | 6 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 10 |
2020-01-01 00:00:12.000 | true | 10 |
2020-01-01 00:00:13.000 | true | 10 |
2020-01-01 00:00:14.000 | true | 10 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 15 |
2020-01-01 00:00:17.000 | true | 15 |
2020-01-01 00:00:18.000 | true | 15 |
2020-01-01 00:00:19.000 | true | 15 |
2020-01-01 00:00:20.000 | true | 15 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 3 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 6 |
2020-01-01 00:00:05.000 | true | 6 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 10 |
2020-01-01 00:00:08.000 | true | 10 |
2020-01-01 00:00:09.000 | true | 10 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 15 |
2020-01-01 00:00:12.000 | true | 15 |
2020-01-01 00:00:13.000 | true | 15 |
2020-01-01 00:00:14.000 | true | 15 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 21 |
2020-01-01 00:00:17.000 | true | 21 |
2020-01-01 00:00:18.000 | true | 21 |
2020-01-01 00:00:19.000 | true | 21 |
2020-01-01 00:00:20.000 | true | 21 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | false | 0 |
2020-01-01 00:00:01.000 | false | 1 |
2020-01-01 00:00:02.000 | true | 2 |
2020-01-01 00:00:03.000 | false | 3 |
2020-01-01 00:00:04.000 | true | 4 |
2020-01-01 00:00:05.000 | true | 5 |
2020-01-01 00:00:06.000 | false | 6 |
2020-01-01 00:00:07.000 | true | 7 |
2020-01-01 00:00:08.000 | true | 8 |
2020-01-01 00:00:09.000 | true | 9 |
2020-01-01 00:00:10.000 | false | 10 |
2020-01-01 00:00:11.000 | true | 11 |
2020-01-01 00:00:12.000 | true | 12 |
2020-01-01 00:00:13.000 | true | 13 |
2020-01-01 00:00:14.000 | true | 14 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 16 |
2020-01-01 00:00:17.000 | true | 17 |
2020-01-01 00:00:18.000 | true | 18 |
2020-01-01 00:00:19.000 | true | 19 |
2020-01-01 00:00:20.000 | true | 20 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | true | NULL |
2020-01-01 00:00:01.000 | true | NULL |
2020-01-01 00:00:02.000 | true | NULL |
2020-01-01 00:00:03.000 | true | NULL |
2020-01-01 00:00:04.000 | true | NULL |
2020-01-01 00:00:05.000 | true | NULL |
2020-01-01 00:00:06.000 | true | NULL |
2020-01-01 00:00:07.000 | true | NULL |
2020-01-01 00:00:08.000 | true | NULL |
2020-01-01 00:00:09.000 | true | NULL |
2020-01-01 00:00:10.000 | true | NULL |
2020-01-01 00:00:11.000 | true | NULL |
2020-01-01 00:00:12.000 | true | NULL |
2020-01-01 00:00:13.000 | true | NULL |
2020-01-01 00:00:14.000 | true | NULL |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | NULL |
2020-01-01 00:00:17.000 | true | NULL |
2020-01-01 00:00:18.000 | true | NULL |
2020-01-01 00:00:19.000 | true | NULL |
2020-01-01 00:00:20.000 | true | NULL |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | true | 1 |
2020-01-01 00:00:01.000 | true | 1 |
2020-01-01 00:00:02.000 | true | 1 |
2020-01-01 00:00:03.000 | true | 1 |
2020-01-01 00:00:04.000 | true | 1 |
2020-01-01 00:00:05.000 | true | 1 |
2020-01-01 00:00:06.000 | true | 1 |
2020-01-01 00:00:07.000 | true | 1 |
2020-01-01 00:00:08.000 | true | 1 |
2020-01-01 00:00:09.000 | true | 1 |
2020-01-01 00:00:10.000 | true | 1 |
2020-01-01 00:00:11.000 | true | 1 |
2020-01-01 00:00:12.000 | true | 1 |
2020-01-01 00:00:13.000 | true | 1 |
2020-01-01 00:00:14.000 | true | 1 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 1 |
2020-01-01 00:00:17.000 | true | 1 |
2020-01-01 00:00:18.000 | true | 1 |
2020-01-01 00:00:19.000 | true | 1 |
2020-01-01 00:00:20.000 | true | 1 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 15 |
2020-01-01 00:00:17.000 | true | 15 |
2020-01-01 00:00:18.000 | true | 15 |
2020-01-01 00:00:19.000 | true | 15 |
2020-01-01 00:00:20.000 | true | 15 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | true | 15 |
2020-01-01 00:00:01.000 | true | 15 |
2020-01-01 00:00:02.000 | true | 15 |
2020-01-01 00:00:03.000 | true | 15 |
2020-01-01 00:00:04.000 | true | 15 |
2020-01-01 00:00:05.000 | true | 15 |
2020-01-01 00:00:06.000 | true | 15 |
2020-01-01 00:00:07.000 | true | 15 |
2020-01-01 00:00:08.000 | true | 15 |
2020-01-01 00:00:09.000 | true | 15 |
2020-01-01 00:00:10.000 | true | 15 |
2020-01-01 00:00:11.000 | true | 15 |
2020-01-01 00:00:12.000 | true | 15 |
2020-01-01 00:00:13.000 | true | 15 |
2020-01-01 00:00:14.000 | true | 15 |
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 21 |
2020-01-01 00:00:17.000 | true | 21 |
2020-01-01 00:00:18.000 | true | 21 |
2020-01-01 00:00:19.000 | true | 21 |
2020-01-01 00:00:20.000 | true | 21 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:15.000 | false | 15 |
2020-01-01 00:00:16.000 | true | 16 |
2020-01-01 00:00:17.000 | true | 17 |
2020-01-01 00:00:18.000 | true | 18 |
2020-01-01 00:00:19.000 | true | 19 |
2020-01-01 00:00:20.000 | true | 20 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | true | NULL |
2020-01-01 00:00:01.000 | true | NULL |
2020-01-01 00:00:02.000 | true | NULL |
2020-01-01 00:00:03.000 | true | NULL |
2020-01-01 00:00:04.000 | true | NULL |
2020-01-01 00:00:05.000 | true | NULL |
2020-01-01 00:00:06.000 | true | NULL |
2020-01-01 00:00:07.000 | true | NULL |
2020-01-01 00:00:08.000 | true | NULL |
2020-01-01 00:00:09.000 | true | NULL |
2020-01-01 00:00:10.000 | true | NULL |
2020-01-01 00:00:11.000 | true | NULL |
2020-01-01 00:00:12.000 | true | NULL |
2020-01-01 00:00:13.000 | true | NULL |
2020-01-01 00:00:14.000 | true | NULL |
2020-01-01 00:00:15.000 | true | NULL |
2020-01-01 00:00:16.000 | true | NULL |
2020-01-01 00:00:17.000 | true | NULL |
2020-01-01 00:00:18.000 | true | NULL |
2020-01-01 00:00:19.000 | true | NULL |
2020-01-01 00:00:20.000 | true | NULL |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | true | 1 |
2020-01-01 00:00:01.000 | true | 1 |
2020-01-01 00:00:02.000 | true | 1 |
2020-01-01 00:00:03.000 | true | 1 |
2020-01-01 00:00:04.000 | true | 1 |
2020-01-01 00:00:05.000 | true | 1 |
2020-01-01 00:00:06.000 | true | 1 |
2020-01-01 00:00:07.000 | true | 1 |
2020-01-01 00:00:08.000 | true | 1 |
2020-01-01 00:00:09.000 | true | 1 |
2020-01-01 00:00:10.000 | true | 1 |
2020-01-01 00:00:11.000 | true | 1 |
2020-01-01 00:00:12.000 | true | 1 |
2020-01-01 00:00:13.000 | true | 1 |
2020-01-01 00:00:14.000 | true | 1 |
2020-01-01 00:00:15.000 | true | 1 |
2020-01-01 00:00:16.000 | true | 1 |
2020-01-01 00:00:17.000 | true | 1 |
2020-01-01 00:00:18.000 | true | 1 |
2020-01-01 00:00:19.000 | true | 1 |
2020-01-01 00:00:20.000 | true | 1 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:00.000 | true | 21 |
2020-01-01 00:00:01.000 | true | 21 |
2020-01-01 00:00:02.000 | true | 21 |
2020-01-01 00:00:03.000 | true | 21 |
2020-01-01 00:00:04.000 | true | 21 |
2020-01-01 00:00:05.000 | true | 21 |
2020-01-01 00:00:06.000 | true | 21 |
2020-01-01 00:00:07.000 | true | 21 |
2020-01-01 00:00:08.000 | true | 21 |
2020-01-01 00:00:09.000 | true | 21 |
2020-01-01 00:00:10.000 | true | 21 |
2020-01-01 00:00:11.000 | true | 21 |
2020-01-01 00:00:12.000 | true | 21 |
2020-01-01 00:00:13.000 | true | 21 |
2020-01-01 00:00:14.000 | true | 21 |
2020-01-01 00:00:15.000 | true | 21 |
2020-01-01 00:00:16.000 | true | 21 |
2020-01-01 00:00:17.000 | true | 21 |
2020-01-01 00:00:18.000 | true | 21 |
2020-01-01 00:00:19.000 | true | 21 |
2020-01-01 00:00:20.000 | true | 21 |
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
_irowts | _isfilled | interp(c1) |
====================================================
2020-01-01 00:00:21.000 | false | 21 |
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);

1 taos> select _irowts as irowts ,tbname as table_name, _isfilled as isfilled , interp(c1) as intp_c1 from test.td32727 partition by tbname range('2020-02-01 00:00:04', '2020-02-01 00:00:16') every(1s) fill (null) order by irowts;
366 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(next);
367 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(linear);
368 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(null);
369 _irowts | _isfilled | interp(c1) |
370 ====================================================
371 2020-01-01 00:00:21.000 | false | 21 |
372 2020-01-01 00:00:22.000 | true | NULL |
373 2020-01-01 00:00:23.000 | true | NULL |
374 2020-01-01 00:00:24.000 | true | NULL |
375 2020-01-01 00:00:25.000 | true | NULL |
376 2020-01-01 00:00:26.000 | true | NULL |
377 2020-01-01 00:00:27.000 | true | NULL |
378 2020-01-01 00:00:28.000 | true | NULL |
379 2020-01-01 00:00:29.000 | true | NULL |
380 2020-01-01 00:00:30.000 | true | NULL |
381 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(value, 1);
382 _irowts | _isfilled | interp(c1) |
383 ====================================================
384 2020-01-01 00:00:21.000 | false | 21 |
385 2020-01-01 00:00:22.000 | true | 1 |
386 2020-01-01 00:00:23.000 | true | 1 |
387 2020-01-01 00:00:24.000 | true | 1 |
388 2020-01-01 00:00:25.000 | true | 1 |
389 2020-01-01 00:00:26.000 | true | 1 |
390 2020-01-01 00:00:27.000 | true | 1 |
391 2020-01-01 00:00:28.000 | true | 1 |
392 2020-01-01 00:00:29.000 | true | 1 |
393 2020-01-01 00:00:30.000 | true | 1 |
394 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(prev);
395 _irowts | _isfilled | interp(c1) |
396 ====================================================
397 2020-01-01 00:00:21.000 | false | 21 |
398 2020-01-01 00:00:22.000 | true | 21 |
399 2020-01-01 00:00:23.000 | true | 21 |
400 2020-01-01 00:00:24.000 | true | 21 |
401 2020-01-01 00:00:25.000 | true | 21 |
402 2020-01-01 00:00:26.000 | true | 21 |
403 2020-01-01 00:00:27.000 | true | 21 |
404 2020-01-01 00:00:28.000 | true | 21 |
405 2020-01-01 00:00:29.000 | true | 21 |
406 2020-01-01 00:00:30.000 | true | 21 |
407 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(next);
408 _irowts | _isfilled | interp(c1) |
409 ====================================================
410 2020-01-01 00:00:21.000 | false | 21 |
411 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(linear);
412 _irowts | _isfilled | interp(c1) |
413 ====================================================
414 2020-01-01 00:00:21.000 | false | 21 |
415 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(null);
416 _irowts | _isfilled | interp(c1) |
417 ====================================================
418 2020-01-01 00:00:15.000 | false | 15 |
419 2020-01-01 00:00:16.000 | true | NULL |
420 2020-01-01 00:00:17.000 | true | NULL |
421 2020-01-01 00:00:18.000 | true | NULL |
422 2020-01-01 00:00:19.000 | true | NULL |
423 2020-01-01 00:00:20.000 | true | NULL |
424 2020-01-01 00:00:21.000 | false | 21 |
425 2020-01-01 00:00:22.000 | true | NULL |
426 2020-01-01 00:00:23.000 | true | NULL |
427 2020-01-01 00:00:24.000 | true | NULL |
428 2020-01-01 00:00:25.000 | true | NULL |
429 2020-01-01 00:00:26.000 | true | NULL |
430 2020-01-01 00:00:27.000 | true | NULL |
431 2020-01-01 00:00:28.000 | true | NULL |
432 2020-01-01 00:00:29.000 | true | NULL |
433 2020-01-01 00:00:30.000 | true | NULL |
434 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(value, 1);
435 _irowts | _isfilled | interp(c1) |
436 ====================================================
437 2020-01-01 00:00:15.000 | false | 15 |
438 2020-01-01 00:00:16.000 | true | 1 |
439 2020-01-01 00:00:17.000 | true | 1 |
440 2020-01-01 00:00:18.000 | true | 1 |
441 2020-01-01 00:00:19.000 | true | 1 |
442 2020-01-01 00:00:20.000 | true | 1 |
443 2020-01-01 00:00:21.000 | false | 21 |
444 2020-01-01 00:00:22.000 | true | 1 |
445 2020-01-01 00:00:23.000 | true | 1 |
446 2020-01-01 00:00:24.000 | true | 1 |
447 2020-01-01 00:00:25.000 | true | 1 |
448 2020-01-01 00:00:26.000 | true | 1 |
449 2020-01-01 00:00:27.000 | true | 1 |
450 2020-01-01 00:00:28.000 | true | 1 |
451 2020-01-01 00:00:29.000 | true | 1 |
452 2020-01-01 00:00:30.000 | true | 1 |
453 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(prev);
454 _irowts | _isfilled | interp(c1) |
455 ====================================================
456 2020-01-01 00:00:15.000 | false | 15 |
457 2020-01-01 00:00:16.000 | true | 15 |
458 2020-01-01 00:00:17.000 | true | 15 |
459 2020-01-01 00:00:18.000 | true | 15 |
460 2020-01-01 00:00:19.000 | true | 15 |
461 2020-01-01 00:00:20.000 | true | 15 |
462 2020-01-01 00:00:21.000 | false | 21 |
463 2020-01-01 00:00:22.000 | true | 21 |
464 2020-01-01 00:00:23.000 | true | 21 |
465 2020-01-01 00:00:24.000 | true | 21 |
466 2020-01-01 00:00:25.000 | true | 21 |
467 2020-01-01 00:00:26.000 | true | 21 |
468 2020-01-01 00:00:27.000 | true | 21 |
469 2020-01-01 00:00:28.000 | true | 21 |
470 2020-01-01 00:00:29.000 | true | 21 |
471 2020-01-01 00:00:30.000 | true | 21 |
472 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(next);
473 _irowts | _isfilled | interp(c1) |
474 ====================================================
475 2020-01-01 00:00:15.000 | false | 15 |
476 2020-01-01 00:00:16.000 | true | 21 |
477 2020-01-01 00:00:17.000 | true | 21 |
478 2020-01-01 00:00:18.000 | true | 21 |
479 2020-01-01 00:00:19.000 | true | 21 |
480 2020-01-01 00:00:20.000 | true | 21 |
481 2020-01-01 00:00:21.000 | false | 21 |
482 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(linear);
483 _irowts | _isfilled | interp(c1) |
484 ====================================================
485 2020-01-01 00:00:15.000 | false | 15 |
486 2020-01-01 00:00:16.000 | true | 16 |
487 2020-01-01 00:00:17.000 | true | 17 |
488 2020-01-01 00:00:18.000 | true | 18 |
489 2020-01-01 00:00:19.000 | true | 19 |
490 2020-01-01 00:00:20.000 | true | 20 |
491 2020-01-01 00:00:21.000 | false | 21 |
492 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(null);
493 _irowts | _isfilled | interp(c1) |
494 ====================================================
495 2020-01-01 00:00:00.000 | false | 0 |
496 2020-01-01 00:00:01.000 | false | 1 |
497 2020-01-01 00:00:02.000 | true | NULL |
498 2020-01-01 00:00:03.000 | false | 3 |
499 2020-01-01 00:00:04.000 | true | NULL |
500 2020-01-01 00:00:05.000 | true | NULL |
501 2020-01-01 00:00:06.000 | false | 6 |
502 2020-01-01 00:00:07.000 | true | NULL |
503 2020-01-01 00:00:08.000 | true | NULL |
504 2020-01-01 00:00:09.000 | true | NULL |
505 2020-01-01 00:00:10.000 | false | 10 |
506 2020-01-01 00:00:11.000 | true | NULL |
507 2020-01-01 00:00:12.000 | true | NULL |
508 2020-01-01 00:00:13.000 | true | NULL |
509 2020-01-01 00:00:14.000 | true | NULL |
510 2020-01-01 00:00:15.000 | false | 15 |
511 2020-01-01 00:00:16.000 | true | NULL |
512 2020-01-01 00:00:17.000 | true | NULL |
513 2020-01-01 00:00:18.000 | true | NULL |
514 2020-01-01 00:00:19.000 | true | NULL |
515 2020-01-01 00:00:20.000 | true | NULL |
516 2020-01-01 00:00:21.000 | false | 21 |
517 2020-01-01 00:00:22.000 | true | NULL |
518 2020-01-01 00:00:23.000 | true | NULL |
519 2020-01-01 00:00:24.000 | true | NULL |
520 2020-01-01 00:00:25.000 | true | NULL |
521 2020-01-01 00:00:26.000 | true | NULL |
522 2020-01-01 00:00:27.000 | true | NULL |
523 2020-01-01 00:00:28.000 | true | NULL |
524 2020-01-01 00:00:29.000 | true | NULL |
525 2020-01-01 00:00:30.000 | true | NULL |
526 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(value, 1);
527 _irowts | _isfilled | interp(c1) |
528 ====================================================
529 2020-01-01 00:00:00.000 | false | 0 |
530 2020-01-01 00:00:01.000 | false | 1 |
531 2020-01-01 00:00:02.000 | true | 1 |
532 2020-01-01 00:00:03.000 | false | 3 |
533 2020-01-01 00:00:04.000 | true | 1 |
534 2020-01-01 00:00:05.000 | true | 1 |
535 2020-01-01 00:00:06.000 | false | 6 |
536 2020-01-01 00:00:07.000 | true | 1 |
537 2020-01-01 00:00:08.000 | true | 1 |
538 2020-01-01 00:00:09.000 | true | 1 |
539 2020-01-01 00:00:10.000 | false | 10 |
540 2020-01-01 00:00:11.000 | true | 1 |
541 2020-01-01 00:00:12.000 | true | 1 |
542 2020-01-01 00:00:13.000 | true | 1 |
543 2020-01-01 00:00:14.000 | true | 1 |
544 2020-01-01 00:00:15.000 | false | 15 |
545 2020-01-01 00:00:16.000 | true | 1 |
546 2020-01-01 00:00:17.000 | true | 1 |
547 2020-01-01 00:00:18.000 | true | 1 |
548 2020-01-01 00:00:19.000 | true | 1 |
549 2020-01-01 00:00:20.000 | true | 1 |
550 2020-01-01 00:00:21.000 | false | 21 |
551 2020-01-01 00:00:22.000 | true | 1 |
552 2020-01-01 00:00:23.000 | true | 1 |
553 2020-01-01 00:00:24.000 | true | 1 |
554 2020-01-01 00:00:25.000 | true | 1 |
555 2020-01-01 00:00:26.000 | true | 1 |
556 2020-01-01 00:00:27.000 | true | 1 |
557 2020-01-01 00:00:28.000 | true | 1 |
558 2020-01-01 00:00:29.000 | true | 1 |
559 2020-01-01 00:00:30.000 | true | 1 |
560 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(prev);
561 _irowts | _isfilled | interp(c1) |
562 ====================================================
563 2020-01-01 00:00:00.000 | false | 0 |
564 2020-01-01 00:00:01.000 | false | 1 |
565 2020-01-01 00:00:02.000 | true | 1 |
566 2020-01-01 00:00:03.000 | false | 3 |
567 2020-01-01 00:00:04.000 | true | 3 |
568 2020-01-01 00:00:05.000 | true | 3 |
569 2020-01-01 00:00:06.000 | false | 6 |
570 2020-01-01 00:00:07.000 | true | 6 |
571 2020-01-01 00:00:08.000 | true | 6 |
572 2020-01-01 00:00:09.000 | true | 6 |
573 2020-01-01 00:00:10.000 | false | 10 |
574 2020-01-01 00:00:11.000 | true | 10 |
575 2020-01-01 00:00:12.000 | true | 10 |
576 2020-01-01 00:00:13.000 | true | 10 |
577 2020-01-01 00:00:14.000 | true | 10 |
578 2020-01-01 00:00:15.000 | false | 15 |
579 2020-01-01 00:00:16.000 | true | 15 |
580 2020-01-01 00:00:17.000 | true | 15 |
581 2020-01-01 00:00:18.000 | true | 15 |
582 2020-01-01 00:00:19.000 | true | 15 |
583 2020-01-01 00:00:20.000 | true | 15 |
584 2020-01-01 00:00:21.000 | false | 21 |
585 2020-01-01 00:00:22.000 | true | 21 |
586 2020-01-01 00:00:23.000 | true | 21 |
587 2020-01-01 00:00:24.000 | true | 21 |
588 2020-01-01 00:00:25.000 | true | 21 |
589 2020-01-01 00:00:26.000 | true | 21 |
590 2020-01-01 00:00:27.000 | true | 21 |
591 2020-01-01 00:00:28.000 | true | 21 |
592 2020-01-01 00:00:29.000 | true | 21 |
593 2020-01-01 00:00:30.000 | true | 21 |
594 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(next);
595 _irowts | _isfilled | interp(c1) |
596 ====================================================
597 2020-01-01 00:00:00.000 | false | 0 |
598 2020-01-01 00:00:01.000 | false | 1 |
599 2020-01-01 00:00:02.000 | true | 3 |
600 2020-01-01 00:00:03.000 | false | 3 |
601 2020-01-01 00:00:04.000 | true | 6 |
602 2020-01-01 00:00:05.000 | true | 6 |
603 2020-01-01 00:00:06.000 | false | 6 |
604 2020-01-01 00:00:07.000 | true | 10 |
605 2020-01-01 00:00:08.000 | true | 10 |
606 2020-01-01 00:00:09.000 | true | 10 |
607 2020-01-01 00:00:10.000 | false | 10 |
608 2020-01-01 00:00:11.000 | true | 15 |
609 2020-01-01 00:00:12.000 | true | 15 |
610 2020-01-01 00:00:13.000 | true | 15 |
611 2020-01-01 00:00:14.000 | true | 15 |
612 2020-01-01 00:00:15.000 | false | 15 |
613 2020-01-01 00:00:16.000 | true | 21 |
614 2020-01-01 00:00:17.000 | true | 21 |
615 2020-01-01 00:00:18.000 | true | 21 |
616 2020-01-01 00:00:19.000 | true | 21 |
617 2020-01-01 00:00:20.000 | true | 21 |
618 2020-01-01 00:00:21.000 | false | 21 |
619 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(linear);
620 _irowts | _isfilled | interp(c1) |
621 ====================================================
622 2020-01-01 00:00:00.000 | false | 0 |
623 2020-01-01 00:00:01.000 | false | 1 |
624 2020-01-01 00:00:02.000 | true | 2 |
625 2020-01-01 00:00:03.000 | false | 3 |
626 2020-01-01 00:00:04.000 | true | 4 |
627 2020-01-01 00:00:05.000 | true | 5 |
628 2020-01-01 00:00:06.000 | false | 6 |
629 2020-01-01 00:00:07.000 | true | 7 |
630 2020-01-01 00:00:08.000 | true | 8 |
631 2020-01-01 00:00:09.000 | true | 9 |
632 2020-01-01 00:00:10.000 | false | 10 |
633 2020-01-01 00:00:11.000 | true | 11 |
634 2020-01-01 00:00:12.000 | true | 12 |
635 2020-01-01 00:00:13.000 | true | 13 |
636 2020-01-01 00:00:14.000 | true | 14 |
637 2020-01-01 00:00:15.000 | false | 15 |
638 2020-01-01 00:00:16.000 | true | 16 |
639 2020-01-01 00:00:17.000 | true | 17 |
640 2020-01-01 00:00:18.000 | true | 18 |
641 2020-01-01 00:00:19.000 | true | 19 |
642 2020-01-01 00:00:20.000 | true | 20 |
643 2020-01-01 00:00:21.000 | false | 21 |
644 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
645 _irowts | _isfilled | interp(c1) |
646 ====================================================
647 2020-01-01 00:00:00.000 | false | 0 |
648 2020-01-01 00:00:01.000 | false | 1 |
649 2020-01-01 00:00:02.000 | true | NULL |
650 2020-01-01 00:00:03.000 | false | 3 |
651 2020-01-01 00:00:04.000 | true | NULL |
652 2020-01-01 00:00:05.000 | true | NULL |
653 2020-01-01 00:00:06.000 | false | 6 |
654 2020-01-01 00:00:07.000 | true | NULL |
655 2020-01-01 00:00:08.000 | true | NULL |
656 2020-01-01 00:00:09.000 | true | NULL |
657 2020-01-01 00:00:10.000 | false | 10 |
658 2020-01-01 00:00:11.000 | true | NULL |
659 2020-01-01 00:00:12.000 | true | NULL |
660 2020-01-01 00:00:13.000 | true | NULL |
661 2020-01-01 00:00:14.000 | true | NULL |
662 2020-01-01 00:00:15.000 | false | 15 |
663 2020-01-01 00:00:16.000 | true | NULL |
664 2020-01-01 00:00:17.000 | true | NULL |
665 2020-01-01 00:00:18.000 | true | NULL |
666 2020-01-01 00:00:19.000 | true | NULL |
667 2020-01-01 00:00:20.000 | true | NULL |
668 2020-01-01 00:00:21.000 | false | 21 |
669 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
670 _irowts | _isfilled | interp(c1) |
671 ====================================================
672 2020-01-01 00:00:00.000 | false | 0 |
673 2020-01-01 00:00:01.000 | false | 1 |
674 2020-01-01 00:00:02.000 | true | 1 |
675 2020-01-01 00:00:03.000 | false | 3 |
676 2020-01-01 00:00:04.000 | true | 1 |
677 2020-01-01 00:00:05.000 | true | 1 |
678 2020-01-01 00:00:06.000 | false | 6 |
679 2020-01-01 00:00:07.000 | true | 1 |
680 2020-01-01 00:00:08.000 | true | 1 |
681 2020-01-01 00:00:09.000 | true | 1 |
682 2020-01-01 00:00:10.000 | false | 10 |
683 2020-01-01 00:00:11.000 | true | 1 |
684 2020-01-01 00:00:12.000 | true | 1 |
685 2020-01-01 00:00:13.000 | true | 1 |
686 2020-01-01 00:00:14.000 | true | 1 |
687 2020-01-01 00:00:15.000 | false | 15 |
688 2020-01-01 00:00:16.000 | true | 1 |
689 2020-01-01 00:00:17.000 | true | 1 |
690 2020-01-01 00:00:18.000 | true | 1 |
691 2020-01-01 00:00:19.000 | true | 1 |
692 2020-01-01 00:00:20.000 | true | 1 |
693 2020-01-01 00:00:21.000 | false | 21 |
694 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
695 _irowts | _isfilled | interp(c1) |
696 ====================================================
697 2020-01-01 00:00:00.000 | false | 0 |
698 2020-01-01 00:00:01.000 | false | 1 |
699 2020-01-01 00:00:02.000 | true | 1 |
700 2020-01-01 00:00:03.000 | false | 3 |
701 2020-01-01 00:00:04.000 | true | 3 |
702 2020-01-01 00:00:05.000 | true | 3 |
703 2020-01-01 00:00:06.000 | false | 6 |
704 2020-01-01 00:00:07.000 | true | 6 |
705 2020-01-01 00:00:08.000 | true | 6 |
706 2020-01-01 00:00:09.000 | true | 6 |
707 2020-01-01 00:00:10.000 | false | 10 |
708 2020-01-01 00:00:11.000 | true | 10 |
709 2020-01-01 00:00:12.000 | true | 10 |
710 2020-01-01 00:00:13.000 | true | 10 |
711 2020-01-01 00:00:14.000 | true | 10 |
712 2020-01-01 00:00:15.000 | false | 15 |
713 2020-01-01 00:00:16.000 | true | 15 |
714 2020-01-01 00:00:17.000 | true | 15 |
715 2020-01-01 00:00:18.000 | true | 15 |
716 2020-01-01 00:00:19.000 | true | 15 |
717 2020-01-01 00:00:20.000 | true | 15 |
718 2020-01-01 00:00:21.000 | false | 21 |
719 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
720 _irowts | _isfilled | interp(c1) |
721 ====================================================
722 2020-01-01 00:00:00.000 | false | 0 |
723 2020-01-01 00:00:01.000 | false | 1 |
724 2020-01-01 00:00:02.000 | true | 3 |
725 2020-01-01 00:00:03.000 | false | 3 |
726 2020-01-01 00:00:04.000 | true | 6 |
727 2020-01-01 00:00:05.000 | true | 6 |
728 2020-01-01 00:00:06.000 | false | 6 |
729 2020-01-01 00:00:07.000 | true | 10 |
730 2020-01-01 00:00:08.000 | true | 10 |
731 2020-01-01 00:00:09.000 | true | 10 |
732 2020-01-01 00:00:10.000 | false | 10 |
733 2020-01-01 00:00:11.000 | true | 15 |
734 2020-01-01 00:00:12.000 | true | 15 |
735 2020-01-01 00:00:13.000 | true | 15 |
736 2020-01-01 00:00:14.000 | true | 15 |
737 2020-01-01 00:00:15.000 | false | 15 |
738 2020-01-01 00:00:16.000 | true | 21 |
739 2020-01-01 00:00:17.000 | true | 21 |
740 2020-01-01 00:00:18.000 | true | 21 |
741 2020-01-01 00:00:19.000 | true | 21 |
742 2020-01-01 00:00:20.000 | true | 21 |
743 2020-01-01 00:00:21.000 | false | 21 |
744 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
745 _irowts | _isfilled | interp(c1) |
746 ====================================================
747 2020-01-01 00:00:00.000 | false | 0 |
748 2020-01-01 00:00:01.000 | false | 1 |
749 2020-01-01 00:00:02.000 | true | 2 |
750 2020-01-01 00:00:03.000 | false | 3 |
751 2020-01-01 00:00:04.000 | true | 4 |
752 2020-01-01 00:00:05.000 | true | 5 |
753 2020-01-01 00:00:06.000 | false | 6 |
754 2020-01-01 00:00:07.000 | true | 7 |
755 2020-01-01 00:00:08.000 | true | 8 |
756 2020-01-01 00:00:09.000 | true | 9 |
757 2020-01-01 00:00:10.000 | false | 10 |
758 2020-01-01 00:00:11.000 | true | 11 |
759 2020-01-01 00:00:12.000 | true | 12 |
760 2020-01-01 00:00:13.000 | true | 13 |
761 2020-01-01 00:00:14.000 | true | 14 |
762 2020-01-01 00:00:15.000 | false | 15 |
763 2020-01-01 00:00:16.000 | true | 16 |
764 2020-01-01 00:00:17.000 | true | 17 |
765 2020-01-01 00:00:18.000 | true | 18 |
766 2020-01-01 00:00:19.000 | true | 19 |
767 2020-01-01 00:00:20.000 | true | 20 |
768 2020-01-01 00:00:21.000 | false | 21 |
769 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
770 _irowts | _isfilled | interp(c1) |
771 ====================================================
772 2020-01-01 00:00:00.000 | true | NULL |
773 2020-01-01 00:00:01.000 | true | NULL |
774 2020-01-01 00:00:02.000 | true | NULL |
775 2020-01-01 00:00:03.000 | true | NULL |
776 2020-01-01 00:00:04.000 | true | NULL |
777 2020-01-01 00:00:05.000 | true | NULL |
778 2020-01-01 00:00:06.000 | true | NULL |
779 2020-01-01 00:00:07.000 | true | NULL |
780 2020-01-01 00:00:08.000 | true | NULL |
781 2020-01-01 00:00:09.000 | true | NULL |
782 2020-01-01 00:00:10.000 | true | NULL |
783 2020-01-01 00:00:11.000 | true | NULL |
784 2020-01-01 00:00:12.000 | true | NULL |
785 2020-01-01 00:00:13.000 | true | NULL |
786 2020-01-01 00:00:14.000 | true | NULL |
787 2020-01-01 00:00:15.000 | false | 15 |
788 2020-01-01 00:00:16.000 | true | NULL |
789 2020-01-01 00:00:17.000 | true | NULL |
790 2020-01-01 00:00:18.000 | true | NULL |
791 2020-01-01 00:00:19.000 | true | NULL |
792 2020-01-01 00:00:20.000 | true | NULL |
793 2020-01-01 00:00:21.000 | false | 21 |
794 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
795 _irowts | _isfilled | interp(c1) |
796 ====================================================
797 2020-01-01 00:00:00.000 | true | 1 |
798 2020-01-01 00:00:01.000 | true | 1 |
799 2020-01-01 00:00:02.000 | true | 1 |
800 2020-01-01 00:00:03.000 | true | 1 |
801 2020-01-01 00:00:04.000 | true | 1 |
802 2020-01-01 00:00:05.000 | true | 1 |
803 2020-01-01 00:00:06.000 | true | 1 |
804 2020-01-01 00:00:07.000 | true | 1 |
805 2020-01-01 00:00:08.000 | true | 1 |
806 2020-01-01 00:00:09.000 | true | 1 |
807 2020-01-01 00:00:10.000 | true | 1 |
808 2020-01-01 00:00:11.000 | true | 1 |
809 2020-01-01 00:00:12.000 | true | 1 |
810 2020-01-01 00:00:13.000 | true | 1 |
811 2020-01-01 00:00:14.000 | true | 1 |
812 2020-01-01 00:00:15.000 | false | 15 |
813 2020-01-01 00:00:16.000 | true | 1 |
814 2020-01-01 00:00:17.000 | true | 1 |
815 2020-01-01 00:00:18.000 | true | 1 |
816 2020-01-01 00:00:19.000 | true | 1 |
817 2020-01-01 00:00:20.000 | true | 1 |
818 2020-01-01 00:00:21.000 | false | 21 |
819 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
820 _irowts | _isfilled | interp(c1) |
821 ====================================================
822 2020-01-01 00:00:15.000 | false | 15 |
823 2020-01-01 00:00:16.000 | true | 15 |
824 2020-01-01 00:00:17.000 | true | 15 |
825 2020-01-01 00:00:18.000 | true | 15 |
826 2020-01-01 00:00:19.000 | true | 15 |
827 2020-01-01 00:00:20.000 | true | 15 |
828 2020-01-01 00:00:21.000 | false | 21 |
829 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
830 _irowts | _isfilled | interp(c1) |
831 ====================================================
832 2020-01-01 00:00:00.000 | true | 15 |
833 2020-01-01 00:00:01.000 | true | 15 |
834 2020-01-01 00:00:02.000 | true | 15 |
835 2020-01-01 00:00:03.000 | true | 15 |
836 2020-01-01 00:00:04.000 | true | 15 |
837 2020-01-01 00:00:05.000 | true | 15 |
838 2020-01-01 00:00:06.000 | true | 15 |
839 2020-01-01 00:00:07.000 | true | 15 |
840 2020-01-01 00:00:08.000 | true | 15 |
841 2020-01-01 00:00:09.000 | true | 15 |
842 2020-01-01 00:00:10.000 | true | 15 |
843 2020-01-01 00:00:11.000 | true | 15 |
844 2020-01-01 00:00:12.000 | true | 15 |
845 2020-01-01 00:00:13.000 | true | 15 |
846 2020-01-01 00:00:14.000 | true | 15 |
847 2020-01-01 00:00:15.000 | false | 15 |
848 2020-01-01 00:00:16.000 | true | 21 |
849 2020-01-01 00:00:17.000 | true | 21 |
850 2020-01-01 00:00:18.000 | true | 21 |
851 2020-01-01 00:00:19.000 | true | 21 |
852 2020-01-01 00:00:20.000 | true | 21 |
853 2020-01-01 00:00:21.000 | false | 21 |
854 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
855 _irowts | _isfilled | interp(c1) |
856 ====================================================
857 2020-01-01 00:00:15.000 | false | 15 |
858 2020-01-01 00:00:16.000 | true | 16 |
859 2020-01-01 00:00:17.000 | true | 17 |
860 2020-01-01 00:00:18.000 | true | 18 |
861 2020-01-01 00:00:19.000 | true | 19 |
862 2020-01-01 00:00:20.000 | true | 20 |
863 2020-01-01 00:00:21.000 | false | 21 |
864 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
865 _irowts | _isfilled | interp(c1) |
866 ====================================================
867 2020-01-01 00:00:00.000 | true | NULL |
868 2020-01-01 00:00:01.000 | true | NULL |
869 2020-01-01 00:00:02.000 | true | NULL |
870 2020-01-01 00:00:03.000 | true | NULL |
871 2020-01-01 00:00:04.000 | true | NULL |
872 2020-01-01 00:00:05.000 | true | NULL |
873 2020-01-01 00:00:06.000 | true | NULL |
874 2020-01-01 00:00:07.000 | true | NULL |
875 2020-01-01 00:00:08.000 | true | NULL |
876 2020-01-01 00:00:09.000 | true | NULL |
877 2020-01-01 00:00:10.000 | true | NULL |
878 2020-01-01 00:00:11.000 | true | NULL |
879 2020-01-01 00:00:12.000 | true | NULL |
880 2020-01-01 00:00:13.000 | true | NULL |
881 2020-01-01 00:00:14.000 | true | NULL |
882 2020-01-01 00:00:15.000 | true | NULL |
883 2020-01-01 00:00:16.000 | true | NULL |
884 2020-01-01 00:00:17.000 | true | NULL |
885 2020-01-01 00:00:18.000 | true | NULL |
886 2020-01-01 00:00:19.000 | true | NULL |
887 2020-01-01 00:00:20.000 | true | NULL |
888 2020-01-01 00:00:21.000 | false | 21 |
889 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
890 _irowts | _isfilled | interp(c1) |
891 ====================================================
892 2020-01-01 00:00:00.000 | true | 1 |
893 2020-01-01 00:00:01.000 | true | 1 |
894 2020-01-01 00:00:02.000 | true | 1 |
895 2020-01-01 00:00:03.000 | true | 1 |
896 2020-01-01 00:00:04.000 | true | 1 |
897 2020-01-01 00:00:05.000 | true | 1 |
898 2020-01-01 00:00:06.000 | true | 1 |
899 2020-01-01 00:00:07.000 | true | 1 |
900 2020-01-01 00:00:08.000 | true | 1 |
901 2020-01-01 00:00:09.000 | true | 1 |
902 2020-01-01 00:00:10.000 | true | 1 |
903 2020-01-01 00:00:11.000 | true | 1 |
904 2020-01-01 00:00:12.000 | true | 1 |
905 2020-01-01 00:00:13.000 | true | 1 |
906 2020-01-01 00:00:14.000 | true | 1 |
907 2020-01-01 00:00:15.000 | true | 1 |
908 2020-01-01 00:00:16.000 | true | 1 |
909 2020-01-01 00:00:17.000 | true | 1 |
910 2020-01-01 00:00:18.000 | true | 1 |
911 2020-01-01 00:00:19.000 | true | 1 |
912 2020-01-01 00:00:20.000 | true | 1 |
913 2020-01-01 00:00:21.000 | false | 21 |
914 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
915 _irowts | _isfilled | interp(c1) |
916 ====================================================
917 2020-01-01 00:00:21.000 | false | 21 |
918 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
919 _irowts | _isfilled | interp(c1) |
920 ====================================================
921 2020-01-01 00:00:00.000 | true | 21 |
922 2020-01-01 00:00:01.000 | true | 21 |
923 2020-01-01 00:00:02.000 | true | 21 |
924 2020-01-01 00:00:03.000 | true | 21 |
925 2020-01-01 00:00:04.000 | true | 21 |
926 2020-01-01 00:00:05.000 | true | 21 |
927 2020-01-01 00:00:06.000 | true | 21 |
928 2020-01-01 00:00:07.000 | true | 21 |
929 2020-01-01 00:00:08.000 | true | 21 |
930 2020-01-01 00:00:09.000 | true | 21 |
931 2020-01-01 00:00:10.000 | true | 21 |
932 2020-01-01 00:00:11.000 | true | 21 |
933 2020-01-01 00:00:12.000 | true | 21 |
934 2020-01-01 00:00:13.000 | true | 21 |
935 2020-01-01 00:00:14.000 | true | 21 |
936 2020-01-01 00:00:15.000 | true | 21 |
937 2020-01-01 00:00:16.000 | true | 21 |
938 2020-01-01 00:00:17.000 | true | 21 |
939 2020-01-01 00:00:18.000 | true | 21 |
940 2020-01-01 00:00:19.000 | true | 21 |
941 2020-01-01 00:00:20.000 | true | 21 |
942 2020-01-01 00:00:21.000 | false | 21 |
943 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
944 _irowts | _isfilled | interp(c1) |
945 ====================================================
946 2020-01-01 00:00:21.000 | false | 21 |
947 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
948 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
949 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
950 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
951 taos> select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017

View File

@ -13,3 +13,53 @@ select _irowts as irowts ,tbname as table_name, c2 as c_c2, c3 as c_c3, _isfille
select _irowts as irowts ,tbname as table_name, c2 as c_c2, c3 as c_c3, _isfilled as isfilled , interp(c1) as intp_c1 from test.td32727 partition by tbname,c2,c3 range('2020-02-01 00:00:04', '2020-02-01 00:00:16') every(1s) fill (prev) order by irowts, c2, c3;
select _irowts as irowts ,tbname as table_name, c2 as c_c2, c3 as c_c3, _isfilled as isfilled , interp(c1) as intp_c1 from test.td32727 partition by tbname,c2,c3 range('2020-02-01 00:00:04', '2020-02-01 00:00:16') every(1s) fill (linear) order by irowts, c2, c3;
select _irowts as irowts ,tbname as table_name, c2 as c_c2, c3 as c_c3, _isfilled as isfilled , interp(c1) as intp_c1 from test.td32727 partition by tbname,c2,c3 range('2020-02-01 00:00:04', '2020-02-01 00:00:16') every(1s) fill (value, 1) order by irowts, c2, c3;
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-02 00:00:00' and '2020-01-01 00:00:00' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-02 00:00:00' range('2020-01-01 00:00:30', '2020-01-01 00:00:00') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:20' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:21', '2020-01-01 00:00:30') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:15', '2020-01-01 00:00:30') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:21' range('2020-01-01 00:00:00', '2020-01-01 00:00:30') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:00' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:15' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:21' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(null);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(value, 1);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(prev);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(next);
select _irowts, _isfilled, interp(c1) from test.td32861 where ts between '2020-01-01 00:00:22' and '2020-01-01 00:00:30' range('2020-01-01 00:00:00', '2020-01-01 00:00:21') every(1s) fill(linear);

View File

@ -38,6 +38,7 @@ class TDTestCase(TBase):
(ts timestamp, c0 tinyint, c1 smallint, c2 int, c3 bigint, c4 double, c5 float, c6 bool, c7 varchar(10), c8 nchar(10), c9 tinyint unsigned, c10 smallint unsigned, c11 int unsigned, c12 bigint unsigned)
'''
)
tdSql.execute("create table if not exists test.td32861(ts timestamp, c1 int);")
tdLog.printNoPrefix("==========step2:insert data")
@ -45,6 +46,16 @@ class TDTestCase(TBase):
tdSql.execute(f"insert into test.td32727 values ('2020-02-01 00:00:10', 10, 10, 10, 10, 10.0, 10.0, true, 'varchar', 'nchar', 10, 10, 10, 10)")
tdSql.execute(f"insert into test.td32727 values ('2020-02-01 00:00:15', 15, 15, 15, 15, 15.0, 15.0, true, 'varchar', 'nchar', 15, 15, 15, 15)")
tdSql.execute(
"""insert into test.td32861 values
('2020-01-01 00:00:00', 0),
('2020-01-01 00:00:01', 1),
('2020-01-01 00:00:03', 3),
('2020-01-01 00:00:06', 6),
('2020-01-01 00:00:10', 10),
('2020-01-01 00:00:15', 15),
('2020-01-01 00:00:21', 21);"""
)
def test_normal_query_new(self, testCase):
# read sql from .sql file and execute