Commit Graph

18 Commits

Author SHA1 Message Date
Robert Schulze
4e52dc672e
Merge pull request #48420 from ClickHouse/rs/f
MySQL compat: Implement %f in parseDateTime()
2023-04-11 14:12:02 +02:00
Robert Schulze
b7be5fd89e
Improve code and tests 2023-04-06 08:47:38 +00:00
Robert Schulze
ce2692ba79
Merge pull request #47246 from ClickHouse/rs/m
Change the behavior of formatter %M in function formatDateTime() from minutes to month name
2023-04-06 09:19:50 +02:00
Robert Schulze
809a7fbb7a
Incorporate more review feedback 2023-04-05 19:43:30 +00:00
Robert Schulze
0d5d2a9b55
Implement %f in parseDateTime()
Fixes: #48394

@cc OP
2023-04-05 09:13:18 +00:00
Robert Schulze
3315acd122
Merge pull request #48222 from ClickHouse/rs/no-default-format-string
parseDateTime[InJodaSyntax](): Require format argument
2023-04-01 16:59:33 +02:00
Robert Schulze
8b2fc8a40a
parseDateTime[InJodaSyntax](): Require format argument
Function parseDateTime[InJodaSyntax]() previously accepted an
(undocumented) default format string. The problem was that
1. there is no "natural" default format
2. MySQL str_to_date() (= the motivation for
   parseDateTime[InJodaSyntax]()) also provides no default format.

--> get rid of the default format
2023-03-30 12:25:55 +00:00
Robert Schulze
2df32324af
MySQL compatibility: Make str_to_date alias case-insensitive
MySQL doesn't care about the case
2023-03-30 12:06:20 +00:00
Robert Schulze
37effb4fa2
Merge remote-tracking branch 'origin/master' into rs/m 2023-03-28 08:51:12 +00:00
Robert Schulze
3701fda6b1
Add str_to_date() alias for MySQL compat
Fixes #43755
2023-03-27 14:52:32 +00:00
Robert Schulze
3db38dbb5a
Replace mySQL date formatter M behavior from minutes to month name 2023-03-27 14:00:51 +00:00
taiyang-li
98b3757b42 fix failed tests 2023-03-23 11:08:04 +08:00
taiyang-li
c7252198aa fix statelsss tests 2023-03-22 19:25:37 +08:00
taiyang-li
6eafdc57a3 fix failed uts 2023-03-07 14:35:50 +08:00
taiyang-li
573c674dc2 refactor some functions 2023-03-01 11:02:41 +08:00
taiyang-li
fe9c4ea0ce add test of joda syntax 2023-02-28 17:27:59 +08:00
taiyang-li
beced6fd52 fix all bugs in mysql syntax 2023-02-28 14:52:13 +08:00
taiyang-li
e288c92d62 fix some bugs 2023-02-28 14:08:03 +08:00