apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.34k stars 3.21k forks source link

[Enhancement] Support a new time parsing format #23265

Open zclllyybb opened 1 year ago

zclllyybb commented 1 year ago

Search before asking

Description

mysql> insert into httplogs1 values('20/Jul/2023:15:50:05 +0800', '[1.1.1.1](http://1.1.1.1/)', 'req', 200, 1000);
ERROR 1105 (HY000): errCode = 2, detailMessage = ([172.21.16.12](http://172.21.16.12/))[INTERNAL_ERROR]Invalid value 20/Jul/2023:15:50:05 +0800 in strict mode for function CAST, source column String, from type String to type DateTimeV2

Solution

Support to parse datelike type literal which date part is with format like 20/Jul/2023. It should be deal in both BE & FE for insert into and streamload. When support it in BE, performance rollback may be noteworthy.

Are you willing to submit PR?

Code of Conduct

felixwluo commented 1 year ago

will pick

zclllyybb commented 1 year ago

will pick

Sure! u can add my wechat torch-wood_ for more information.

guochao521 commented 1 year ago

I want to try it

tudouzhao commented 1 year ago

I want to have a try, too!

Tech-Circle-48 commented 9 months ago

i can try it