TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

return results are incorrect if set timestamp desc and use limit and offset

Open plum-lihui opened this issue 6 years ago • 0 comments

版本:1.6.5.1 select * from db.sb_fhsj where meter_no='613391900130' AND sjsj>'2019-12-01 00:00:00' AND sjsj<'2019-12-27 00:00:00' norder by sjsj desc; 返回满足条件的记录是945条; select * from db.sb_fhsj where meter_no='613391900130' AND sjsj>'2019-12-01 00:00:00' AND sjsj<'2019-12-27 00:00:00' norder by sjsj desc limit 10 offset 950; 仍然会有返回结果。

plum-lihui avatar Dec 28 '19 08:12 plum-lihui