haimeiguo opened a new pull request #2571:
URL: https://github.com/apache/iotdb/pull/2571
currently when use group by month and starttime is in February, there is a
calculation error.
'''
IoTDB> select count(*) from root.sg1 group by ([2020-02-13, 2020-03-13), 1mo)
+----+---------------------+---------------------+---------------------+
|Time|count(root.sg1.d1.s4)|count(root.sg1.d1.s5)|count(root.sg1.d1.s2)|
+----+---------------------+---------------------+---------------------+
+----+---------------------+---------------------+---------------------+
IoTDB> select count(*) from root.sg1 group by ([2020-04-01, 2020-05-01), 1mo)
+-----------------------------+---------------------+---------------------+---------------------+
|
Time|count(root.sg1.d1.s4)|count(root.sg1.d1.s5)|count(root.sg1.d1.s2)|
+-----------------------------+---------------------+---------------------+---------------------+
|2020-04-01T00:00:00.000+08:00| 0| 0|
0|
+-----------------------------+---------------------+---------------------+---------------------+
Total line number = 1
It costs 0.003s
'''
but it should be
'''
IoTDB> select count(*) from root.sg1 group by ([2020-02-01, 2020-03-01), 1mo)
+-----------------------------+---------------------+---------------------+---------------------+
|
Time|count(root.sg1.d1.s4)|count(root.sg1.d1.s5)|count(root.sg1.d1.s2)|
+-----------------------------+---------------------+---------------------+---------------------+
|2020-02-01T00:00:00.000+08:00| 0| 0|
0|
+-----------------------------+---------------------+---------------------+---------------------+
'''
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]