hubgeter commented on PR #40695:
URL: https://github.com/apache/doris/pull/40695#issuecomment-2347944447

   1. For the implementation of `to_iso8601`, I used `to_buffer`. However, for 
the `datetime` type, it needs to be slightly modified. 
   2. For the `from_iso8601_date` function, I originally tried to use 
`from_date_format_str` to implement it, but this has some problems in handling 
`Week dates` when using it directly. Secondly, even if I use the 
`from_date_format_str` function, I should first use regular expressions to 
determine which iso8601 format my string belongs to, and then call 
`from_date_format_str` according to different formats. Then the iso8601  string 
will be parsed again.
   
   > maybe
   > 
   > 
https://github.com/apache/doris/blob/4466541c1b476e3c8e52a52dd6ceeb62a79e7edd/be/src/vec/runtime/vdatetime_value.h#L834
   > 
   > 
https://github.com/apache/doris/blob/4466541c1b476e3c8e52a52dd6ceeb62a79e7edd/be/src/vec/runtime/vdatetime_value.h#L866
   > 
   > has already met your need.
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to