add tests

This commit is contained in:
kevinyhzou 2024-10-16 19:50:00 +08:00
parent a194871b91
commit 6c1a709d30
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
2024-10-09 10:30:10.123
2024-10-09 10:30:10.123456
\N
2024-10-10 02:30:10.123456
2024-10-09 10:24:27.123456

View File

@ -0,0 +1,5 @@
select parseDateTime64InJodaSyntaxOrNull('2024-10-09 10:30:10.123', 'yyyy-MM-dd HH:mm:ss.SSS');
select parseDateTime64InJodaSyntaxOrNull('2024-10-09 10:30:10.123456', 'yyyy-MM-dd HH:mm:ss.SSSSSS');
select parseDateTime64InJodaSyntaxOrNull('2024-10-09 10:30:10.123456789', 'yyyy-MM-dd HH:mm:ss.SSSSSSSSS');
select parseDateTime64InJodaSyntaxOrNull('2024-10-09 10:30:10.123456-0800', 'yyyy-MM-dd HH:mm:ss.SSSSSSZ');
select parseDateTime64InJodaSyntaxOrNull('2024-10-09 10:30:10.123456Asia/Shanghai', 'yyyy-MM-dd HH:mm:ss.SSSSSSz');