manannan2017 opened a new issue #1570: the function of timediff has errors in boundary and type URL: https://github.com/apache/incubator-doris/issues/1570 the function of timediff has errors,such as boundary and type the list of errors is: 1、select timediff(CAST('1944-02-25 00:00:00' as datetime), CAST('1944-2-26' as datetime)); +----------------------------------------------------------------------------------+ | timediff(CAST('1944-02-25 00:00:00' AS DATETIME), CAST('1944-2-26' AS DATETIME)) | +----------------------------------------------------------------------------------+ | 00:00:00 | +----------------------------------------------------------------------------------+ except: +----------------------------------------------------------------------------------+ | timediff(CAST('1944-02-25 00:00:00' as datetime), CAST('1944-2-26' as datetime)) | +----------------------------------------------------------------------------------+ | -24:00:00 | +----------------------------------------------------------------------------------+ 1 row in set (0.47 sec) 2、boundary SELECT TIMEDIFF('2019-01-01 00:00:00', '2009-01-01 00:00:00'); +--------------------------------------------------------+ | timediff('2019-01-01 00:00:00', '2009-01-01 00:00:00') | +--------------------------------------------------------+ | 87648:00:00 | +--------------------------- except: SELECT TIMEDIFF('2019-01-01 00:00:00', '2009-01-01 00:00:00'); +--------------------------------------------------------+ | TIMEDIFF('2019-01-01 00:00:00', '2009-01-01 00:00:00') | +--------------------------------------------------------+ | 838:59:59 | +--------------------------------------------------------+
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
