mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-20 20:25:36 +00:00
feat: make greatest supports timestamp and datetime types (#5005)
* feat: make greatest supports timestamp and datetime types * chore: style Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com> * refactor: greatest with gt_time_types macro --------- Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>
This commit is contained in:
co-authored by
Lei, HUANG
parent
73e6bf399d
commit
0dd02e93cf
@@ -5,3 +5,5 @@ select current_time();
|
||||
select GREATEST('1999-01-30', '2023-03-01');
|
||||
|
||||
select GREATEST('2000-02-11'::Date, '2020-12-30'::Date);
|
||||
|
||||
select GREATEST('2021-07-01 00:00:00'::Timestamp, '2024-07-01 00:00:00'::Timestamp);
|
||||
|
||||
Reference in New Issue
Block a user