mch_ucchi
1d05feea1b
[Feature](Nereids) add executable function to support fold constant for functions (#18209)
1. Add date-time functions for fold constant for Nereids.
This is the list of executable date-time function nereids supports up to now:
- now()
- now(int)
- current_timestamp()
- current_timestamp(int)
- localtime()
- localtimestamp()
- curdate()
- current_date()
- curtime()
- current_time()
- date_{add/sub}(),{years/months/days/hours/minutes/seconds}_{add/sub}()
- datediff()
- {date/datev2}()
- {year/quarter/month/day/hour/minute/second}()
- dayof{year/month/week}()
- date_format()
- date_trunc()
- from_days()
- last_day()
- to_monday()
- from_unixtime()
- unix_timestamp()
- utc_timestamp()
- to_date()
- to_days()
- str_to_date()
- makedate()
2. solved problem:
- enable datev2/datetimev2 default.
- refactor Nereids foldConstantOnFE and support fold nested expression.
- separate the executable into multi-files for easily-reading and adding new functions
2023-05-17 21:26:31 +08:00
..
2023-04-13 10:23:41 +08:00
2023-05-16 17:00:01 +08:00
2023-04-18 13:57:55 +08:00
2023-01-30 15:25:00 +08:00
2023-04-17 13:18:14 +08:00
2023-05-17 21:26:31 +08:00
2022-09-07 09:10:42 +08:00
2023-05-17 21:26:31 +08:00
2022-08-17 22:45:53 +08:00
2023-05-12 09:06:16 +08:00
2023-04-07 13:09:44 +08:00
2022-09-07 09:10:42 +08:00
2022-12-16 17:08:29 +08:00
2023-04-24 10:33:29 +08:00
2023-05-17 14:12:52 +08:00
2023-05-11 01:13:13 +08:00
2023-04-21 15:11:18 +08:00
2023-04-22 08:36:48 +08:00
2023-04-13 09:18:00 +08:00
2023-03-24 14:48:03 +08:00
2023-01-12 13:59:21 +08:00
2023-02-28 17:30:23 +08:00
2023-05-10 11:12:20 +08:00