Commit Graph

277 Commits

Author SHA1 Message Date
Alexey Milovidov
f4ec421292
Merge pull request #52106 from Lloyd-Pottiger/add-alias-for-today-and-now
Add alias for today(curdate/current_date) and now(current_timestamp)
2023-07-20 15:02:25 +03:00
Lloyd-Pottiger
56a5446af3 format
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
2023-07-18 10:28:51 +08:00
Lloyd-Pottiger
3636c2a847
Merge branch 'master' into add-alias-for-today-and-now 2023-07-17 14:28:24 +08: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
robot-ch-test-poll1
78994c8a96
Merge pull request #52090 from zvonand/zvonand-docs-22948
Small docs update for toYearWeek() function
2023-07-15 19:31:19 +02:00
Alexey Milovidov
9307e60c20
Revert "Millisecond and microsecond support in date_diff / age functions" 2023-07-14 23:21:26 +03:00
Lloyd-Pottiger
e4cbece6dd update docs
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
2023-07-14 14:03:19 +08:00
Andrey Zvonov
0de7fb5c62
typofix1 2023-07-13 20:12:59 +03:00
Andrey Zvonov
013e46e0ee
Merge branch 'master' into zvonand-docs-22948 2023-07-13 18:02:49 +02:00
zvonand
a87474cee1 rm \n 2023-07-13 17:25:49 +02:00
zvonand
7e1b5d8997 updated docs for toYearWeek() 2023-07-13 17:21:23 +02:00
Dmitry Kardymon
ed16828b70 Merge remote-tracking branch 'clickhouse/master' into ADQM-868 2023-07-04 08:18:57 +03:00
Dmitry Kardymon
792cdb6da5 Add millisecond support to age() / add tests 2023-06-20 08:26:59 +00:00
Dmitry Kardymon
02b5b50e41 Add milli/micro seconds support for date_diff 2023-06-16 12:39:46 +00:00
zvonand
e60506f41b changes requested in review 2023-06-16 02:16:04 +02:00
zvonand
a1b1e12e5b upd spell 2023-06-08 18:38:51 +02:00
zvonand
4d4e5c690e update docs spelling check failed 2023-06-08 17:10:51 +02:00
Andrey Zvonov
2e427ee028
Merge branch 'master' into zvonand-implicit-tz 2023-06-02 01:15:56 +03:00
Andrey Zvonov
87fc780c14
Merge branch 'master' into zvonand-implicit-tz 2023-05-30 13:13:46 +03:00
Victor Krasnov
0ad5b9f598 Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-810-dev 2023-05-29 08:26:26 +00:00
Victor Krasnov
99a7967f11 Amend the dicumentation with regard to toLastDayOfWeek 2023-05-24 11:58:39 +00:00
Victor Krasnov
a7b641134a Follow the reviewer's recommendations regarding the documentation 2023-05-22 08:28:11 +00:00
zvonand
7dccb51bc0 fix conflict and update 2023-05-19 23:40:51 +02:00
Victor Krasnov
3c68d63213 Amend the toUnixTimestamp function documentation 2023-05-18 09:11:48 +00:00
darkkeks
2b793e3a14 [docs] Remove "example" section from date-time-functions page toc 2023-05-13 16:22:17 +03:00
zvonand
60b69601e9 update docs 2023-05-12 00:27:11 +02:00
Andrey Zvonov
9237b904be
Merge branch 'master' into zvonand-implicit-tz 2023-05-10 01:25:33 +02:00
Robert Schulze
c893302a08
Implement a MySQL-compatible variant of makeDate()
Fixes #49143
2023-05-06 20:11:36 +00:00
Robert Schulze
2986c28761
Small fixes 2023-05-06 18:12:10 +00:00
zvonand
8338d54c34 Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-implicit-tz 2023-05-05 15:50:26 +02:00
Ivan Takarlikov
8873856ce5 Fix some grammar mistakes in documentation, code and tests 2023-05-04 13:35:18 -03:00
Alexander Gololobov
ec0f8dbfbf
fix makeDateTime syntax 2023-04-26 15:07:23 +02:00
Robert Schulze
ad15749b4e
Document makeDateTime() and its variants
Follow-up to #35628
2023-04-26 12:22:05 +00:00
Andrey Zvonov
984e8fde41
Merge branch 'master' into zvonand-implicit-tz 2023-04-20 23:13:17 +02:00
Robert Schulze
e70190f5b5
Cleanup more function docs 2023-04-20 12:48:50 +00:00
Robert Schulze
ec5b421be4
Docs: Sort functions in sidebar 2023-04-19 17:05:55 +00:00
Robert Schulze
c406663442
Docs: Replace annoying three spaces in enumerations by a single space 2023-04-19 15:56:55 +00:00
zvonand
daae5025e8 small updates due to review 2023-04-19 14:45:51 +02:00
zvonand
22be85d976 renamed setting 2023-04-18 02:42:30 +02:00
zvonand
2a9f28b73b resolve 2023-04-12 12:54:39 +02:00
Robert Schulze
dcfd843b2d
Merge pull request #48489 from ClickHouse/rs/date_time-alias
Register datediff and trim aliases in system.functions
2023-04-11 19:53:44 +02:00
Robert Schulze
cfd9c4d85e
Register aliases of date_diff in system.functions 2023-04-06 14:04:37 +00:00
Robert Schulze
df5de4ec78
Merge remote-tracking branch 'origin/master' into rs/better-f-in-formatdatetime 2023-04-06 09:58:09 +00:00
Robert Schulze
4b7c0f42f4
Small documentation follow-up to #47246 2023-04-06 09:49:58 +00:00
Robert Schulze
5eb31bba87
MySQL compat: Align behavior of %f in formatDateTime() with parseDateTime() 2023-04-06 08:13:04 +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
d7ee316380
Minor: Suggest ClickHouse-native function name over MySQL-compatibility alias 2023-04-03 07:28:31 +00:00
Robert Schulze
3db38dbb5a
Replace mySQL date formatter M behavior from minutes to month name 2023-03-27 14:00:51 +00:00
Robert Schulze
129245da2e
Docs: Fix links 2023-03-24 13:52:56 +00:00
Robert Schulze
bd02627869
Update docs for parseDateTime() (follow-up to #46815) 2023-03-23 21:28:03 +00:00
taiyang-li
94175b79a7 Merge branch 'master' into to_timestamp 2023-03-22 16:46:44 +08:00
taiyang-li
3ca789b4a2 changes as requested 2023-03-20 23:58:37 +08:00
rfraposa
ac5ed141d8 New nav - reverting the revert 2023-03-17 21:45:43 -05:00
Alexander Tokmakov
ec44c8293a
Revert "New navigation" 2023-03-17 21:21:11 +03:00
rfraposa
60fb9973d7 trailing slash fixes 2023-03-16 16:43:01 -05:00
Andrey Zvonov
4327d707e0
Merge branch 'master' into zvonand-implicit-tz 2023-03-15 22:18:52 +01:00
taiyang-li
b2757a65a5 Merge branch 'master' into to_timestamp 2023-03-07 16:26:24 +08:00
taiyang-li
b303fb5630 finish docs 2023-03-07 15:30:38 +08:00
Dan Roscigno
fbabba78c9
Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2023-03-02 12:55:23 -05:00
Dan Roscigno
9cb70723d1
Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2023-03-02 12:55:16 -05:00
Dan Roscigno
2db7df6153
Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2023-03-02 12:55:04 -05:00
Dan Roscigno
38fbd61788
Merge branch 'master' into DanRoscigno-patch-4 2023-03-02 12:32:04 -05:00
Dan Roscigno
4457ebab48
Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2023-03-02 12:31:56 -05:00
Robert Schulze
d378ae9c76
Docs: Switch two rows for consistency 2023-03-02 17:05:11 +00:00
Dan Roscigno
73a6c920d3
Update date-time-functions.md
closes #42758
2023-03-02 11:31:22 -05:00
zvonand
a9d0f7e7db Added docs for new serverTimeZone function
Updated tests and docs
2023-02-23 19:14:49 +01:00
Jake Bamrah
4ea814a843 add DATE_FORMAT alias and remaining mySQL date formatters 2023-02-16 09:52:19 +00:00
Robert Schulze
6195456d5b
Fix formatting 2023-01-29 19:58:59 +00:00
Robert Schulze
4abd395153
Docs: Fix typo 2023-01-27 13:39:50 +00:00
Alexey Milovidov
5b257ab806
Merge pull request #45233 from ClickHouse/improve_week_day
Revert "Revert "Improve week day""
2023-01-27 02:44:17 +03:00
Robert Schulze
87ca5dcdf2
Document start of week in function date_diff() 2023-01-24 20:18:59 +00:00
Dale Mcdiarmid
9c4d3e0ffb link docs to blogs 2023-01-17 15:38:10 +00:00
Robert Schulze
bd41c74ddf
Various test, code and docs fixups 2023-01-15 13:47:34 +00:00
Robert Schulze
4ea836b87e
Revert "Revert "update function DAYOFWEEK and add new function WEEKDAY for mysql/spark compatiability""
This reverts commit e37f572c34.
2023-01-13 14:00:16 +00:00
Alexander Tokmakov
e37f572c34
Revert "update function DAYOFWEEK and add new function WEEKDAY for mysql/spark compatiability" 2023-01-12 15:01:36 +03:00
Robert Schulze
9bb1e31369
Merge pull request #44860 from bigo-sg/improve_week_day
update function DAYOFWEEK and add new function WEEKDAY for mysql/spark compatiability
2023-01-11 13:58:45 +01:00
taiyang-li
20c7c0b1ef change as request 2023-01-09 18:21:31 +08:00
DanRoscigno
eff349bab7 clarify date sub docs 2023-01-06 17:32:03 -05:00
DanRoscigno
9e5c8acd92 add toLastDayOfMonth to docs 2023-01-05 11:37:05 -05:00
Robert Schulze
421473e974
Merge pull request #44421 from ClickHouse/revert-of-revert-of-age-function
Revert revert of age function
2023-01-03 10:02:18 +01:00
taiyang-li
3e44f6574c update doc 2022-12-28 14:58:18 +08:00
taiyang-li
5ae280611b merge master and solve conflict 2022-12-28 14:44:10 +08:00
Alexander Gololobov
c95e10777f
Fixed formatiing 2022-12-21 21:40:30 +01:00
Alexander Gololobov
269700df42
Merge branch 'master' into feature/format-datetime-fractional-second 2022-12-21 21:34:46 +01:00
Robert Schulze
3f03b0b53d
Revert "Revert "Add function 'age'""
This reverts commit 4549b14027.
2022-12-20 10:18:43 +00:00
taiyang-li
58cbd8162f Add new functions to format datetime in joda datetime style 2022-12-14 14:28:43 +08:00
Alexey Milovidov
4549b14027
Revert "Add function 'age'" 2022-12-13 23:28:09 +03:00
ltrk2
4cbda15acf Drop toFractionalSecond 2022-12-09 07:52:27 -08:00
ltrk2
cae7a1d24a Implement formatDateTime fractional second formatter 2022-12-08 14:53:16 -08:00
Roman Vasin
96d7cf319b
Merge branch 'master' into ADQM-623 2022-11-30 19:25:53 +03:00
Roman Vasin
107a0d50f3 Update docs 2022-11-30 16:12:58 +00:00
Christoph Wurm
2a9ab046dd Unify spelling of DateTime 2022-11-15 11:51:14 +00:00
Roman Vasin
753895026f Improve docs and add more queries to 02477_age test 2022-11-10 12:18:29 +00:00
Roman Vasin
31d84d5aed Add doc for age() function 2022-11-10 12:05:53 +00:00
Roman Vasin
fc16752844 Update docs for FROM_UNIXTIME 2022-10-28 12:56:52 +00:00
Robert Schulze
b746224217
Merge pull request #42554 from arenadata/ADQM-604
Add support of Date32 arguments for dateName function
2022-10-22 17:20:10 +02:00
Alexey Milovidov
592fbb3eaf
Merge pull request #42367 from ClickHouse/revert-40217
Revert #40217
2022-10-21 21:56:15 +02:00
Roman Vasin
537f7000d6 Update documentation 2022-10-21 06:55:24 +00:00
Alexey Milovidov
d1f0c80ffe Revert "Merge pull request #40217 from zvonand/zvonand-minmax"
This reverts commit df934d8762, reversing
changes made to d3a7945b1b.
2022-10-17 04:57:15 +02:00
Roman Vasin
90f9bd24a3 Update documentation 2022-10-14 08:02:38 +00:00