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
Alexey Milovidov
6eff22568f
Revert "Add function getHttpHeader"
2023-10-29 19:50:39 +03:00
Robert Schulze
5801b06529
Merge pull request #55983 from rschu1ze/snowflake-scale
...
Fix dateTime64ToSnowflake64() with non-default scale
2023-10-27 10:22:35 +02:00
Robert Schulze
325ff33c3a
Merge pull request #55239 from aiven-sal/aiven-sal/format_query
...
Add formatQuery function
2023-10-26 22:46:01 +02:00
vdimir
dbaf66b8f2
Fix function_json_value_return_type_allow_nullable setting name in doc
2023-10-26 19:26:18 +02:00
Anton Popov
9e64f51ffa
Merge pull request #56020 from CurtizJ/minor-style-fixes
...
Correct the implementation of function `jsonMergePatch`
2023-10-26 13:26:55 +02:00
Salvatore Mesoraca
56bd61d207
Rename formatQueryOneLine -> formatQuerySingleLine
2023-10-26 13:09:20 +02:00
Salvatore Mesoraca
21e0c510c8
formatQuery: improve doc
2023-10-26 13:08:11 +02:00
Dmitry Novik
e25ce7c5fb
Merge pull request #56007 from nellicus/patch-1
...
Fix toDayOfWeek return value description
2023-10-25 20:21:20 +02:00
Anton Popov
3e6ecf1858
correct the implementation of function jsonMergePatch
2023-10-25 15:17:28 +00:00
Dmitry Novik
3973b24302
Update docs/en/sql-reference/functions/date-time-functions.md
2023-10-25 16:58:25 +02:00
Anton Popov
6ba59b8408
Merge pull request #54364 from Joeywzr/master
...
Support jsonMerge function
2023-10-25 15:27:16 +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
a7e582fb11
Fix style, pt. II
2023-10-25 09:35:39 +00:00
Salvatore Mesoraca
a95a2a5d66
formatQueryOneLine: create new function format queries on one line
2023-10-25 10:10:04 +02:00
Robert Schulze
9838e0ce3a
Update docs
2023-10-25 08:01:57 +00:00
Robert Schulze
f94c33586c
Fix issue #42966
2023-10-24 15:14:20 +00:00
Robert Schulze
0955107e8e
Merge pull request #55948 from rschu1ze/arrayFold-switch-args
...
arrayFold: Switch accumulator and array arguments
2023-10-24 16:16:02 +02:00
Salvatore Mesoraca
2d2eaceb77
formatQuery: move doc
2023-10-24 16:13:15 +02:00
Salvatore Mesoraca
457e7ba7bd
formatQuery: improve doc
2023-10-24 15:38:24 +02:00
Salvatore Mesoraca
1380dc942e
Add formatQuery function
2023-10-24 15:38:24 +02:00
Robert Schulze
b9b66e76dd
Switch accumulator and array arguments
2023-10-23 14:59:16 +00:00
Robert Schulze
bef5cea5a0
Merge remote-tracking branch 'rschu1ze/master' into string-addinterval
2023-10-23 14:08:18 +00:00
Robert Schulze
bb856680e7
Incorporated review feedback
2023-10-23 14:07:14 +00:00
Denny Crane
835be79d4b
Update docs/en/sql-reference/functions/array-functions.md
...
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-10-23 07:06:41 -03:00
Denny Crane
bd934575ea
Update array-functions.md
2023-10-23 05:29:42 -03:00
Denny Crane
8417b64530
Update array-functions.md
2023-10-23 05:27:26 -03: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
dcedc5f10b
Merge remote-tracking branch 'rschu1ze/master' into string-args-in-week-functions
2023-10-14 08:32:33 +00:00
Robert Schulze
246e29a41a
Add 16/32-byte integer support
2023-10-13 14:54:56 +00:00
Robert Schulze
d02a718076
Merge pull request #55211 from Priyansh121096/master
...
Add function byteSwap
2023-10-13 16:54:28 +02: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
robot-clickhouse-ci-1
c40a79f0b4
Merge pull request #54813 from lingtaolf/feature/function-getClientHttpHeader
...
Add function getHttpHeader
2023-10-12 10:13:20 +02:00
alesapin
3f6d1414d3
Merge pull request #55196 from xjtupdy/doc-fix-ClickHouse
...
edit wrong example in en doc
2023-10-11 20:34:13 +02:00
alesapin
fc1ad9a969
Update docs/en/sql-reference/functions/arithmetic-functions.md
2023-10-11 18:24:44 +02:00
alesapin
a150ec53c0
Update arithmetic-functions.md
2023-10-11 18:24:24 +02:00
Memo
b7f70c2ba3
Merge branch 'master' into master
2023-10-10 20:08:41 +08:00
Robert Schulze
31ae84604f
Some fixups
2023-10-10 09:54:06 +00:00
Joey Wang
06a7b679f6
support merging of nested paths
2023-10-10 14:57:37 +08:00
凌涛
51e2e59a97
Merge remote-tracking branch 'origin/master' into feature/function-getClientHttpHeader
2023-10-10 10:56:24 +08:00
Priyansh Agrawal
9677dedd87
Add negative tests.
...
Also:
- Add comments in tests.
- Add an example in docs where an IPv4 is casted to an int, byteswapped
and then casted back to an IPv4.
2023-10-09 21:52:06 +00:00
Priyansh Agrawal
2e4709fd10
Remove "unsigned" from docs now that we support all ints.
2023-10-09 21:16:46 +00:00
Robert Schulze
624dbcdb4f
Merge pull request #49794 from Lirikl/arrayFold
...
Added function `arrayFold()`
2023-10-09 13:38:35 +02: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
07e0cc196d
Some fixups
2023-10-08 20:27:13 +00:00
Robert Schulze
d4e7fa2542
Merge pull request #55123 from garcher22/untuple
...
Use the tuple element names as column names in `untuple()`
2023-10-08 20:14:29 +02:00
Robert Schulze
32a77ca1eb
Merge pull request #54391 from itayisraelov/israelov/generate-random-int-array
...
Add function `arrayRandomSample()`
2023-10-08 18:28:58 +02:00
Robert Schulze
3f33c32684
Fix style
2023-10-08 10:46:28 +00:00
Robert Schulze
8c35ccf9e8
Some fixups
2023-10-08 10:29:46 +00:00
Robert Schulze
8a8f769508
Update docs
2023-10-08 10:16:05 +00:00
Priyansh Agrawal
2c04370e5f
Use std::byteswap instead of custom implementations.
...
- Also allow signed ints now because std::byteswap accepts them.
- Fix for style check.
2023-10-07 23:59:24 +00:00
Priyansh Agrawal
302291e17b
Address a few review comments.
...
- Consider byteswap injective.
- Make function case-insensitive.
- Add in-code documentation and copy-paste it to the markdown docs.
2023-10-07 23:05:07 +00:00
Robert Schulze
73ff017fb5
Merge remote-tracking branch 'rschu1ze/master' into israelov/generate-random-int-array
2023-10-07 18:10:09 +00:00
Robert Schulze
3580c4d730
Fixups
2023-10-07 18:08:54 +00:00
Robert Schulze
a72ae92328
Make the logging in the query cache easier to understand
2023-10-07 11:33:11 +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
Priyansh Agrawal
540d966033
Docs and comment
2023-10-02 22:51:58 +01:00
pdy
72e4559d30
edit wrong example in en doc
2023-10-01 18:53:41 +08:00
Alexey Milovidov
458cbb3b18
Fix function names in docs
2023-09-29 10:15:46 +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
凌涛
0d256a381a
add doc
...
fix tests
modify code stype and spelling
add tests and modify code style
2023-09-27 17:03:53 +08:00
flynn
3d299d5f9d
Review fix
2023-09-27 03:16:52 +00:00
vdimir
70ae994e77
Merge pull request #54935 from ucasfl/hamming-distance
...
Add several string distance functions
2023-09-25 17:06:16 +02:00
Priyansh Agrawal
f27a76b923
Add function byteSwap
.
...
byteSwap accepts an integer `operand` and returns the integer which is
obtained by swapping the **endianness** of `operand` i.e. reversing the
bytes of the `operand`.
Issue: #54734
2023-09-24 21:02:09 +01:00
zvonand
2ab38761d7
added docs
2023-09-24 13:01:23 +02:00
flynn
0a701ba7e9
fix spell
2023-09-23 17:50:02 +00:00
flynn
661ba85865
add more functions
2023-09-23 17:17:35 +00:00
flynn
c264bb5fad
fix
2023-09-23 04:11:20 +00:00
Robert Schulze
ec09fd124d
Merge pull request #54856 from slvrtrn/to-days-since-year-zero-datetime
...
`DateTime`/`DateTime64` support in `toDaysSinceYearZero()`
2023-09-22 20:39:54 +02:00
flynn
0ed66a6611
add doc
2023-09-22 17:48:17 +00:00
Robert Schulze
a7c4efb845
Simpler
2023-09-22 13:13:55 +00:00
Robert Schulze
be1e92a2ac
Merge pull request #54518 from rschu1ze/split-better
...
Provide fallback to Python/Spark-like splitting in splitBy*() functions
2023-09-22 12:07:45 +02:00
slvrtrn
a68fbe073b
Update toDaysSinceYearZero docs
2023-09-20 18:02:53 +02:00
Robert Schulze
774c4b52da
Rework
2023-09-19 12:20:53 +00: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
2a5aa289e8
Implement true Python/Spark split behavior
2023-09-18 07:42:57 +00:00
Robert Schulze
b5b2cc511b
Pythonic vs Spark splitting
2023-09-18 07:42:52 +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
Itay Israelov
8569c1cad0
fix empty array bug
2023-09-13 13:11:53 +03:00
Itay Israelov
6cfed0a660
fix comments 2
2023-09-13 13:11:53 +03:00
Itay Israelov
69ba32940e
fix comments: rname randomSampleFromArray --> arrayRandomSample
2023-09-13 13:11:53 +03:00
Itay Israelov
52c997b026
add documentation
2023-09-13 13:11:53 +03: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
2a8e2a0882
Docs: Mention behavior change of splitByChar() in v22.11, see #42673
2023-09-10 14:12:12 +00:00