Commit Graph

158 Commits

Author SHA1 Message Date
Jordi Villar
107dc07327 Allow changing dateDiff and age to sunday mode 2024-04-11 15:55:12 +02:00
Jordi Villar
6bcefbb416 Allow changing toStartOfInterval to sunday mode 2024-04-11 15:55:01 +02:00
Raúl Marín
772bd84433
Merge pull request #62170 from Algunenano/nested_includes_N
Remove a few nested include dependencies
2024-04-03 12:19:25 +02:00
Raúl Marín
c35a436435 Remove nested dependency on DateLutImpl 2024-04-02 14:45:48 +02:00
Austin Kothig
c15993220f
Merge remote-tracking branch 'upstream' into feature/dateDiff-nanoseconds 2024-03-26 09:04:23 -07:00
Austin Kothig
cefdbfb7c3
Applying feedback. 2024-03-20 07:05:49 -07:00
Raúl Marín
de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Nikita Mikhaylov
15896ecaf6
Add table system.keywords [Part 1] (#51808) 2024-03-18 16:58:57 +01:00
Austin Kothig
5020741b25
Add support for nanosecond level precision. 2024-03-14 14:34:45 -07:00
Robert Schulze
1366a3ebe2
Merge pull request #60649 from rschu1ze/revert-revert-54746_to_millisecond_function
Revert "Revert "Add `toMillisecond` function""
2024-03-08 10:55:04 +01:00
Yarik Briukhovetskyi
2eb7fa297b
Merge pull request #60763 from zvonand/zvonand-fix-toStartOf
Fix toStartOfInterval
2024-03-06 13:55:21 +01:00
zvonand
41ff818a20 fix toStartOfInterval 2024-03-04 12:53:41 +01:00
Robert Schulze
68181ab00f
Revert "Revert "Add toMillisecond function""
This reverts commit 5225fc6a14.
2024-03-01 13:14:44 +00:00
Alexander Tokmakov
5225fc6a14
Revert "Add toMillisecond function" 2024-03-01 13:59:03 +01:00
Robert Schulze
44c3de1a0b
Merge pull request #60281 from Blargian/54746_to_millisecond_function
Add `toMillisecond` function
2024-03-01 11:34:20 +01:00
Robert Schulze
52b1fc6db9
Minor fixes 2024-03-01 10:06:54 +00:00
Blargian
6594219943 Fix style-check 2024-02-29 20:52:30 +01:00
Blargian
f1c9b1abcd Fix millisecond calculation 2024-02-29 18:05:49 +01:00
Robert Schulze
613e426484
Some fixups 2024-02-28 11:14:53 +00:00
Blargian
8b8dcf01b6 Add toMillisecond 2024-02-27 19:32:38 +01:00
Alexey Milovidov
c192a448d0 Update to clang-19 2024-02-27 14:37:21 +01:00
Blargian
7175eec931 add toMilliseconds implementation, update docs and reference file of test 2024-02-22 12:32:29 +01:00
Yarik Briukhovetskyi
cd00481e46
review fix 2024-01-05 19:02:14 +01:00
Yarik Briukhovetskyi
94533ecb9f
Update DateTimeTransforms.h 2024-01-05 17:59:21 +01:00
Yarik Briukhovetskyi
90a986e262
Update DateTimeTransforms.h 2024-01-05 17:58:22 +01:00
yariks5s
12585ded09 init 2024-01-05 16:51:35 +00:00
Robert Schulze
92f0c7e522
Move DAYS_BETWEEN_YEARS_0_AND_1970 back to indicate the relation to ToDaysSinceYearZero 2023-11-02 20:58:53 +00:00
Joanna Hulboj
087cf431a7 Stub of function fromDaysSinceYearZero 2023-10-31 21:00:11 +00:00
zvonand
35baf7792d cleanup after rebase, add [[unlikely]] 2023-10-26 23:56:45 +02:00
zvonand
0766c73aab Rename date_time_overflow_mode -> date_time_overflow_behavior, moved it to format settings 2023-10-25 23:11:13 +02:00
zvonand
5b86e8c714 updated after review 2023-10-25 23:10:58 +02:00
zvonand
2f3695add8 Introduce setting for dt overflow exception
Added tests and docs
2023-10-25 23:10:24 +02:00
Robert Schulze
f7cf512824
Merge pull request #55589 from rschu1ze/string-args-in-week-functions
MySQL compatibility: `toDayOfWeek()` now supports string arguments
2023-10-16 09:07:01 +02:00
Alexey Milovidov
a904ee970f KeyCondition: preparation 2023-10-14 04:32:25 +02:00
Robert Schulze
bb0ff98f5e
String argument support for toDayOfWeek(), toWeek() and toYearWeek() 2023-10-13 10:30:37 +00:00
Robert Schulze
af911dd186
Refactorings 2023-10-13 09:48:32 +00:00
Robert Schulze
0e1aed2a38
Merge pull request #55327 from rschu1ze/to_start_of_interval_hours
Refactorings and better documentation for `toStartOfInterval()`
2023-10-08 22:33:12 +02:00
Robert Schulze
38c64b3cd1
Fix tests 2023-10-08 14:26:31 +00:00
Robert Schulze
3f33c32684
Fix style 2023-10-08 10:46:28 +00:00
Robert Schulze
4b7ffa52c5
Refactorings 2023-10-07 16:45:52 +00:00
Robert Schulze
a7c4efb845
Simpler 2023-09-22 13:13:55 +00:00
Robert Schulze
7f82765787
Some fixups 2023-09-22 11:52:02 +00:00
slvrtrn
4d3b127a1f clang-format to resolve style issues 2023-09-21 16:16:03 +02:00
slvrtrn
e2649b5e1d Remove unnecessary function 2023-09-20 18:08:02 +02:00
slvrtrn
859e1a266e toDaysSinceYearZero DateTime/DateTime64 support 2023-09-20 17:59:37 +02:00
Robert Schulze
caadfe393b
Fixes 2023-09-10 13:34:02 +00:00
Robert Schulze
1ce84774f0
Implement toDaysSinceYearZero() / to_days() (MySQL alias)
Fixes: #54277
2023-09-09 16:59:39 +00:00
Robert Schulze
0a05831839
Cosmetics 2023-09-09 16:52:42 +00:00
Dmitry Kardymon
a644317f57 Revert "Merge pull request #52129 from ClickHouse/revert-51291-ADQM-868"
This reverts commit 1b9bcae68e, reversing
changes made to 7284749d05.
2023-07-16 18:07:22 +00:00
Alexey Milovidov
9307e60c20
Revert "Millisecond and microsecond support in date_diff / age functions" 2023-07-14 23:21:26 +03:00