Commit Graph

277 Commits

Author SHA1 Message Date
Robert Schulze
bea529c9a1
Try to stabilize test results 2023-11-12 15:11:38 +00:00
Robert Schulze
82f5e92bf5
Update docs of fromUnixTimeStamp[InJodaSyntax]() 2023-11-10 11:11:42 +00:00
Robert Schulze
910477b1bd
Add FROM_DAYS() alias 2023-11-02 21:43:17 +00:00
Robert Schulze
0b587d3cea
Remove overflow setting
Reason 1:
- https://github.com/ClickHouse/ClickHouse/pull/55696#issuecomment-1774130793
  Basically: Setting `date_time_overflow_behavior` applies only to
  conversions between Date <-> Date32 <-> DateTime <-> DateTime64 but
  it does not control the behavior of functions.

Reason 2:
- It's overkill (even if well-intented overkill). ClickHouse generally
  has a garbage in - garbate out philosophy, so that should be the
  default behavior which corresponds to behavior "ignore". Moreover,
  function 'fromDaysSinceYearZero()' mostly exists for compatibility /
  parity with MySQL and MySQL takes the same stance.
2023-11-02 21:43:17 +00:00
Robert Schulze
492af27feb
Update docs 2023-11-02 20:56:01 +00:00
Joanna Hulboj
757dc8b944 Fix typos, add to/fromDaysSinceYearZero to fuzz 2023-11-01 17:48:58 +00:00
Joanna Hulboj
e5b4d7fac7 Fix failing checks 2023-10-31 21:00:11 +00:00
Robert Schulze
13b2946ae2
Merge pull request #55960 from rschu1ze/adddate-stringargs
Support string-encoded date arguments in `addDate()`
2023-10-31 15:37:34 +01:00
Dmitry Novik
3973b24302
Update docs/en/sql-reference/functions/date-time-functions.md 2023-10-25 16:58:25 +02:00
Robert Schulze
5067fb342f
Support-encoded date arguments in addDate() 2023-10-25 10:41:18 +00:00
Antonio Bonuccelli
8861f8b6ea
Fix toDayOfWeek return value description
Fix toDayOfWeek return value description
2023-10-25 11:50:41 +02:00
Robert Schulze
bb856680e7
Incorporated review feedback 2023-10-23 14:07:14 +00:00
Robert Schulze
c2215cb5f0
Support string arguments 2023-10-22 09:28:45 +00:00
Robert Schulze
3551d7f2d6
Update docs 2023-10-20 15:46:17 +00:00
Robert Schulze
1957179058
Make the warning in the docs more strict 2023-10-13 13:21:38 +00:00
Robert Schulze
bb0ff98f5e
String argument support for toDayOfWeek(), toWeek() and toYearWeek() 2023-10-13 10:30:37 +00:00
rfraposa
c066f6044d Add syntax and examples to docs of date/time functions 2023-10-12 11:24:57 -06: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
3f33c32684
Fix style 2023-10-08 10:46:28 +00:00
Robert Schulze
8a8f769508
Update docs 2023-10-08 10:16:05 +00:00
Avery Fischer
ecac99f45e
Fix docs typo (makeDateTime32 -> makeDateTime64)
Appears to have been a simple typo. Fixing to the actual function!
2023-10-05 13:10:54 +02:00
Nikolay Degterinsky
9ebecb5499
Merge pull request #54639 from evillique/timestamp-function
Add `timestamp` function for compatibility with MySQL
2023-09-28 16:44:16 +02:00
Robert Schulze
675819be6b
Minor fixes 2023-09-27 21:15:20 +00:00
Nikolay Degterinsky
c1f59eccd5 Add fraction part to the time argument, add docs, better test 2023-09-27 20:17:32 +00:00
Robert Schulze
a7c4efb845
Simpler 2023-09-22 13:13:55 +00:00
slvrtrn
a68fbe073b Update toDaysSinceYearZero docs 2023-09-20 18:02:53 +02:00
Robert Schulze
4ed5b903b4
Docs: remove anchor prefix 2023-09-18 18:35:59 +00:00
robot-ch-test-poll2
c3a5d7dbf0
Merge pull request #54758 from rschu1ze/docs-qc
Docs: Update query cache section on non-deterministic functions
2023-09-18 20:01:46 +02:00
Robert Schulze
6872e95fb2
Remove prefixes 2023-09-18 17:34:40 +00:00
Robert Schulze
3753a78d1b
Fix anchors 2023-09-18 17:24:49 +00:00
Robert Schulze
b14e00f966
Docs: Update query cache section on non-deterministic functions
Cf. https://github.com/ClickHouse/support-escalation/issues/963
2023-09-18 14:36:16 +00:00
Robert Schulze
3935c2bfb2
Merge pull request #54509 from rschu1ze/yyyymmdd
Add YYYYMMDD[hhmmss]to[Date, Date32, DateTime, DateTime64]()
2023-09-15 15:47:34 +02:00
Robert Schulze
aff9dfa630
Minor docs fixes 2023-09-15 11:26:24 +00:00
Nikolay Degterinsky
140a466a1e
Merge pull request #54400 from evillique/adddate-function
Add `addDate` function for compatibility with MySQL
2023-09-13 18:59:26 +02:00
Nikolay Degterinsky
e648646598 Fixes 2023-09-12 23:11:58 +00:00
Nikolay Degterinsky
cf662712ea Add new subDate function, apply review suggestions 2023-09-12 16:47:43 +00:00
Robert Schulze
49f29861a0
Merge pull request #54479 from rschu1ze/todayssinceyearzero
Add function toDaysSinceYearZero()
2023-09-11 17:05:28 +02:00
Robert Schulze
73ce1993fb
Continue #45070 2023-09-11 13:47:06 +00: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
Denny Crane
24928217b9
Update date-time-functions.md 2023-09-08 16:14:00 -03:00
Denny Crane
3f58e2f134
Update date-time-functions.md 2023-09-08 16:10:16 -03:00
Denny Crane
a0ef063b2d
Update date-time-functions.md 2023-09-08 16:04:35 -03:00
Nikolay Degterinsky
b06412ae60 Add addDate function for compatibility with MySQL 2023-09-07 11:15:49 +00:00
Justin de Guzman
af43e95f8d
Update date-time-functions doc 2023-08-23 17:42:55 -07:00
Justin de Guzman
2db0e0879d
Simply docs for possible values for date units 2023-08-23 17:39:33 -07:00
Alexey Milovidov
b884fdb867
Merge pull request #53641 from irenjj/feat_53602
dateDiff: add support for plural units.
2023-08-23 12:45:35 +03:00
irenjj
0f0b5eb3b1 dateDiff: add support for plural units. 2023-08-21 21:15:00 +08:00
kevinyhzou
48cb9b59f4 Support from/to utc timestamp 2023-08-21 09:28:00 +08:00
StianBerger
d2dba496bf
Update date-time-functions.md
formatDateTime %r for 12-hour time, mentioned %H in  equivalent, which is 24H. Replaced with %h.
2023-07-21 10:26:01 +02:00