## Is your feature request related to a problem? `TIMESTAMPADD` and `TIMESTAMPDIFF` functions [in mysql](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_timestampadd) have unit as an argument. See also [`EXTRACT`](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_extract) function. ## What solution would you like? A new data type: `UNIT`: 1. Not storable and not returnable to user. 2. Not comparable and not castable. 3. Can store multiple units inside, see [`EXTRACT`](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_extract). 4. For use in few datetime functions only. ## What alternatives have you considered? Use a string instead. ## Do you have any additional context? #722 #855
Activity
Yury-Fridlyand commentedon Mar 24, 2023
Implemented with workaround in
EXTRACTAddEXTRACTFunction To OpenSearch SQL Plugin #1421TIMESTAMPADDAddTIMESTAMPADDFunction To OpenSearch SQL Plugin #1451TIMESTAMPDIFFAddTimestampdiffFunction To OpenSearch SQL #1467