About the conversion of oracle's to_char to doris #2037
Closed
liujiwen-up
started this conversation in
General
Replies: 1 comment 2 replies
-
Based on https://www.techonthenet.com/oracle/functions/to_char.php, it seems like this needs quite some effort to transpile correctly. You'd need to go through the different Oracle |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Usage of to_char in oracle,to_char('2009-10-04 22:23:00', 'yyyymm' and to_char(t, 'FM99999999990.00)
Format conversion for date and value respectively,However, there is no such function in doris that takes into account both, so whether it can be realized in the form of conversion according to the situation
self.validate_all( "to_char('2009-10-04 22:23:00', 'yyyymm')", write={ "doris": "DATE_FORMAT('2009-10-04 22:23:00', 'yyyymm')", }, ), self.validate_all( "to_char(t, 'FM99999999990.00')", write={ "doris": "Round(t,2)", }, ),
Beta Was this translation helpful? Give feedback.
All reactions