Merge pull request #26213 from taosdata/fix/3.0/first_last_fill_order_fault
fix first last fill with ts order fault
This commit is contained in:
commit
3decadf764
|
@ -1205,7 +1205,7 @@ static int32_t createFillLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect
|
|||
pFill->node.groupAction = getGroupAction(pCxt, pSelect);
|
||||
pFill->node.requireDataOrder = getRequireDataOrder(true, pSelect);
|
||||
pFill->node.resultDataOrder = pFill->node.requireDataOrder;
|
||||
pFill->node.inputTsOrder = 0;
|
||||
pFill->node.inputTsOrder = TSDB_ORDER_ASC;
|
||||
|
||||
int32_t code = partFillExprs(pSelect, &pFill->pFillExprs, &pFill->pNotFillExprs);
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
|
|
|
@ -194,6 +194,10 @@ class TDTestCase:
|
|||
tdSql.checkData(10, 1, 10)
|
||||
tdSql.checkData(11, 1, 10)
|
||||
|
||||
sql = "select _wstart, first(ts), last(ts) from meters where ts >= '2018-09-20 00:00:00.000' and ts < '2018-09-20 01:00:00.000' partition by t1 interval(5m) fill(NULL)"
|
||||
tdSql.query(sql, queryTimes=1)
|
||||
tdSql.checkRows(60)
|
||||
|
||||
def run(self):
|
||||
self.prepareTestEnv()
|
||||
self.test_partition_by_with_interval_fill_prev_new_group_fill_error()
|
||||
|
|
Loading…
Reference in New Issue