HappenLee opened a new pull request, #25026:
URL: https://github.com/apache/doris/pull/25026
## Proposed changes
Beforeļ¼
```
[testdb]>select hour_floor(`@timestamp`, 4) as t, count() as cnt from
httplogs_date group by t order by t limit 10;
+---------------------+--------+
| t | cnt |
+---------------------+--------+
| 1998-05-01 00:00:00 | 324 |
| 1998-05-01 04:00:00 | 174137 |
| 1998-05-01 08:00:00 | 140461 |
| 1998-05-01 12:00:00 | 145945 |
| 1998-05-01 16:00:00 | 213248 |
| 1998-05-01 20:00:00 | 293426 |
| 1998-05-02 00:00:00 | 226038 |
| 1998-05-02 04:00:00 | 119502 |
| 1998-05-02 08:00:00 | 101933 |
| 1998-05-02 12:00:00 | 95275 |
+---------------------+--------+
10 rows in set (2.97 sec)
```
after:
```
[testdb]>select hour_floor(`@timestamp`, 4) as t, count() as cnt from
httplogs_date group by t order by t limit 10;
+---------------------+--------+
| t | cnt |
+---------------------+--------+
| 1998-05-01 00:00:00 | 324 |
| 1998-05-01 04:00:00 | 174137 |
| 1998-05-01 08:00:00 | 140461 |
| 1998-05-01 12:00:00 | 145945 |
| 1998-05-01 16:00:00 | 213248 |
| 1998-05-01 20:00:00 | 293426 |
| 1998-05-02 00:00:00 | 226038 |
| 1998-05-02 04:00:00 | 119502 |
| 1998-05-02 08:00:00 | 101933 |
| 1998-05-02 12:00:00 | 95275 |
+---------------------+--------+
10 rows in set (0.67 sec)
```
<!--Describe your changes.-->
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]