Robert Schulze
f184d69115
Remove equivalent_integer typedef
2023-11-22 14:26:46 +00:00
Alexey Milovidov
d1015aae8e
Merge pull request #57073 from ClickHouse/implement-bit-hamming-distance-for-big-integers
...
Implement `bitHammingDistance` for big integers
2023-11-22 11:56:33 +01:00
Antonio Andelic
8c88dbe5aa
Merge pull request #57033 from ClickHouse/fix-fuzzbits
...
Fix `fuzzBits` with `ARRAY JOIN`
2023-11-22 08:46:28 +01:00
Alexey Milovidov
5cb55d3f8c
Fix style
2023-11-22 01:24:58 +01:00
Alexey Milovidov
de5556b458
Add a test
2023-11-22 00:29:43 +01:00
Alexey Milovidov
8ed04c7645
Merge branch 'master' into implement-bit-hamming-distance-for-big-integers
2023-11-22 00:10:11 +01:00
Alexey Milovidov
fd8714ac29
Implement bitHammingDistance
for big integers
2023-11-21 18:38:00 +01:00
Bhavna Jindal
eb35e61aea
added validateFunctionArgumentTypes
2023-11-21 06:52:48 -08:00
Bhavna Jindal
4767859ba5
added validateFunctionArgumentTypes
2023-11-21 06:52:48 -08:00
Bhavna Jindal
f0d9037e74
Added embeded function documentation
2023-11-21 06:52:48 -08:00
Bhavna Jindal
64292f36f5
fixed getReturnTypeImpl to accept only array argument
2023-11-21 06:52:48 -08:00
Bhavna Jindal
464cdc4a91
fixed getReturnTypeImpl to accept only array argument
2023-11-21 06:52:48 -08:00
Bhavna Jindal
0843d5e890
added macro to enable/disable pocketfft lib
2023-11-21 06:52:47 -08:00
Bhavna Jindal
90df67a6b1
fix header file issue and added edge case handling
2023-11-21 06:52:47 -08:00
Bhavna Jindal
2c1cf7ed43
fix header file issue and added edge case handling
2023-11-21 06:52:47 -08:00
Bhavna Jindal
56a7fe6c86
fix header file issue and added edge case handling
2023-11-21 06:52:47 -08:00
Bhavna Jindal
ad99cb902f
changed method name, updated pocketfft repo reference
2023-11-21 06:52:47 -08:00
Bhavna Jindal
62d69946eb
Added testcases, documentation and addressed comments
2023-11-21 06:52:47 -08:00
Bhavna Jindal
3fa104ec11
format file
2023-11-21 06:52:47 -08:00
Bhavna Jindal
c4c12509ee
removed commented code and fixed a bug
2023-11-21 06:52:47 -08:00
Bhavna Jindal
2235adcae5
Implemented series periods detect method using pocketfft lib
2023-11-21 06:52:47 -08:00
Antonio Andelic
2ae32d3383
Update src/Functions/getClientHTTPHeader.cpp
2023-11-21 13:12:44 +01:00
凌涛
e86aa433c5
Merge branch 'master' into feature/getHTTPHeader
2023-11-21 19:48:47 +08:00
凌涛
5e581a9fa4
optimize code
2023-11-21 19:47:39 +08:00
Robert Schulze
6851c1dbbc
Suppress bs clang-tidy warning
2023-11-21 11:15:19 +00:00
Antonio Andelic
f996dac75d
Fix fuzzBits
2023-11-21 09:43:27 +00:00
凌涛
c5f16725ec
add function getClientHTTPHeader
2023-11-21 11:12:01 +08:00
slvrtrn
6d14350886
Allow to use any integer types with fromDaysSinceYearZero
2023-11-20 17:26:31 +01:00
slvrtrn
59c251bf88
Allow to use concat with a single argument
2023-11-20 16:17:31 +01:00
Alexey Milovidov
510ea1106d
Merge pull request #56423 from arthurpassos/56357_quotes_extract_kv
...
Add transition from reading key to reading quoted key when double quotes are found
2023-11-19 11:26:48 +01:00
Robert Schulze
7a994976e3
Merge pull request #56913 from rschu1ze/trydecodebase64-invalid-input
...
Fix `tryBase64Decode()` with invalid input
2023-11-18 18:07:13 +01:00
Robert Schulze
4353507724
Merge pull request #56540 from slvrtrn/concat-arbitrary-types
...
Support arguments of arbitary type in function `concat()`
2023-11-18 17:21:03 +01:00
slvrtrn
d504ad6e99
Merge remote-tracking branch 'origin' into concat-arbitrary-types
2023-11-17 13:45:12 +01:00
Raúl Marín
fc793fe31f
Merge pull request #56120 from kitaisreal/window-functions-decrease-amount-of-virtual-function-calls
...
WindowTransform decrease amount of virtual function calls
2023-11-17 13:24:38 +01:00
Robert Schulze
b2dc5ada6e
Fix tryDecodeBase64() with invalid input
2023-11-17 11:31:52 +00:00
Alexey Milovidov
482d8ca9d8
Merge pull request #56102 from ClickHouse/coverage
...
Granular code coverage with introspection
2023-11-16 23:23:40 +01:00
Raúl Marín
a0840d36af
Apply the same to arrayReduce
2023-11-16 12:48:27 +01:00
Raúl Marín
e53e723be8
Apply same improvement to initializeAggregation
2023-11-16 12:32:42 +01:00
Raúl Marín
5e087f1633
Merge pull request #56817 from Algunenano/transform_tsan
...
Fix TSAN report under transform
2023-11-16 11:03:13 +01:00
Raúl Marín
2508e91856
Fix TSAN race in transform
2023-11-15 23:10:25 +01:00
Robert Schulze
e2b25aab0c
Fixups, pt. II
2023-11-15 15:53:38 +00:00
Robert Schulze
0b45e4bfee
Merge remote-tracking branch 'ClickHouse/master' into concat-arbitrary-types
2023-11-15 15:44:36 +00:00
Robert Schulze
f21dd37d18
Some fixups
2023-11-15 15:43:41 +00:00
Antonio Andelic
5c4e58d27d
Try fix No user
2023-11-15 15:14:46 +00:00
slvrtrn
20cfe91ff9
Remove unused error codes
2023-11-15 15:21:19 +01:00
slvrtrn
0aaea6e51d
Fix ColumnConst serialization issues, more tests
2023-11-15 14:42:38 +01:00
slvrtrn
178d23b951
Concat with arbitrary types + tests
2023-11-15 13:53:52 +01:00
Arthur Passos
89f721b81b
Merge branch 'ClickHouse:master' into 56357_quotes_extract_kv
2023-11-15 09:06:59 -03:00
Raúl Marín
e67edb5488
Merge pull request #56597 from Algunenano/readd_sleep_message
...
Add "FunctionSleep exception message fix" again
2023-11-14 12:30:12 +01:00
Alexey Milovidov
3ef14f6098
Merge branch 'master' of github.com:ClickHouse/ClickHouse into coverage
2023-11-14 06:08:32 +01:00
Alexey Milovidov
c81cc3f953
Merge pull request #56660 from ClickHouse/better-ccache-2
...
Better use of build cache
2023-11-13 19:28:33 +01:00
Raúl Marín
6ce1ae36d3
Fix the fix
2023-11-13 10:56:49 +00:00
Alexey Milovidov
82c461031e
Fix build
2023-11-13 10:09:23 +01:00
Alexey Milovidov
a044c61c79
Merge branch 'master' of github.com:ClickHouse/ClickHouse into system-symbols
2023-11-13 03:27:37 +01:00
Alexey Milovidov
9ed47749de
Merge pull request #56644 from evillique/fix-cast-nullable-enum-to-string
...
Fix conversion from `Nullable(Enum)` to `Nullable(String)`
2023-11-13 02:48:34 +01:00
Nikolay Degterinsky
d3ac896131
Fix conversion from Nullable(Enum) to Nullable(String)
2023-11-12 19:02:42 +00:00
Alexey Milovidov
bdb35e1d4c
Merge branch 'remove-cpp-templates-2' into system-symbols
2023-11-11 04:26:10 +01:00
Alexey Milovidov
66d297ee47
Fix style
2023-11-11 04:25:49 +01:00
Alexey Milovidov
c94f4266fa
Merge branch 'remove-cpp-templates-2' into system-symbols
2023-11-11 04:12:44 +01:00
Alexey Milovidov
58319f08be
Merge branch 'master' into system-symbols
2023-11-11 04:12:37 +01:00
Alexey Milovidov
28bf977960
Fix test
2023-11-11 03:59:16 +01:00
Alexey Milovidov
2efe26eee9
Fix error and remove garbage
2023-11-11 03:38:46 +01:00
Alexey Milovidov
a90f3b14e8
Split FunctionsStringArray
2023-11-11 02:21:24 +01:00
Alexey Milovidov
3bec4dce8e
Merge branch 'master' into remove-cpp-templates-2
2023-11-11 00:50:32 +01:00
Raúl Marín
72fae1057d
Fix ubsan in sleep and add sanity checks
2023-11-10 17:24:41 +00:00
Raúl Marín
78f0a2a61d
Revert "Merge pull request #56591 from ClickHouse/revert-56500-function-sleep-exception-message-fix"
...
This reverts commit e8875d881d
, reversing
changes made to a5b1474b6a
.
2023-11-10 17:20:17 +00:00
Alexey Milovidov
21a814c20b
Revert "FunctionSleep exception message fix"
2023-11-10 18:53:56 +03:00
Robert Schulze
a5b1474b6a
Merge pull request #56586 from rschu1ze/toUnixTS-docs
...
Update docs of `fromUnixTimeStamp[InJodaSyntax]()`
2023-11-10 15:21:48 +01:00
Robert Schulze
82f5e92bf5
Update docs of fromUnixTimeStamp[InJodaSyntax]()
2023-11-10 11:11:42 +00:00
Alexey Milovidov
60a9974adc
Fix build
2023-11-10 05:34:29 +01:00
Alexey Milovidov
e5df9de12b
Merge branch 'remove-cpp-templates-2' into system-symbols
2023-11-10 05:28:45 +01:00
Alexey Milovidov
8c253b9e3e
Remove C++ templates
2023-11-10 05:25:02 +01:00
Arthur Passos
401c6cb763
Merge branch 'ClickHouse:master' into 56357_quotes_extract_kv
2023-11-09 14:56:04 -03:00
slvrtrn
124af73f1d
Add support of arbitrary types to concat
2023-11-09 17:54:45 +01:00
Maksim Kita
8b4619fd5f
FunctionSleep exception message fix
2023-11-09 19:40:37 +03:00
Alexey Milovidov
ad4a96ce0f
Fix tidy
2023-11-09 00:22:29 +01:00
Alexey Milovidov
68d3f60ef7
Merge branch 'master' into system-symbols
2023-11-08 17:07:11 +01:00
Robert Schulze
66800a334f
Fix darwin build
2023-11-07 19:44:23 +00:00
Alexey Milovidov
ca83da14f2
Merge branch 'master' of github.com:ClickHouse/ClickHouse into system-symbols
2023-11-07 19:43:19 +01:00
Arthur Passos
28ca29fda2
remove stale comment
2023-11-07 14:31:34 -03:00
Arthur Passos
e4400ec24c
add transition from reading key to reading quoted key when double quotes are found
2023-11-07 13:33:02 -03:00
Robert Schulze
fe5dc14ac7
Fix style
2023-11-07 15:27:41 +00:00
Robert Schulze
d8e8abc029
Fix build
2023-11-07 15:26:43 +00:00
Robert Schulze
86b8ebf71c
Merge remote-tracking branch 'rschu1ze/master' into arrayRandomSample-improved
2023-11-07 15:25:29 +00:00
Robert Schulze
3ca00fcdd5
Fix a bug that non-const array inputs would not work
...
CREATE TABLE tab (col Array(String)) ENGINE = MergeTree ORDER BY col;
INSERT INTO tab VALUES (['a', 'b', 'c']) (['d', 'e']) (['f', 'g', 'h']);
SELECT arrayRandomSample(col, 2) FROM tab;
Previous result:
['a', 'c']
['a', 'c']
['a', 'c']
Now:
['b', 'c']
['e', 'd']
['f', 'h']
2023-11-07 12:26:59 +00:00
Robert Schulze
e09f5961b1
Don't catch exceptions (loses the original stack)
2023-11-07 12:07:17 +00:00
Robert Schulze
7223d49b20
Cosmetics
2023-11-07 12:07:17 +00:00
Robert Schulze
54b5d573d7
Merge remote-tracking branch 'rschu1ze/master' into idatatype-convenience-functions
2023-11-07 10:18:30 +00:00
Robert Schulze
e22c673299
Revert "Revert "Add function arrayRandomSample()
""
...
This reverts commit e47e50e30d
.
2023-11-07 10:16:13 +00:00
Alexey Milovidov
e47e50e30d
Revert "Add function arrayRandomSample()
"
2023-11-07 02:49:11 +03:00
Alexey Milovidov
d01108a2b2
Fix tidy
2023-11-06 23:34:21 +01:00
Robert Schulze
8846cc6770
Merge pull request #56327 from rschu1ze/parseQueryOrNull
...
Improve `formatQuery()`
2023-11-06 22:48:16 +01:00
Alexey Milovidov
145c37f342
Fix tidy
2023-11-06 16:28:05 +01:00
Robert Schulze
8896134531
Cleanup IDataType convenience functions
2023-11-06 13:25:32 +00:00
vdimir
3b775dee53
Merge pull request #55126 from ClickHouse/vdimir/jaccard_index_perf
...
Add function jaccardIndex back with better performance
2023-11-06 10:39:02 +01:00
Robert Schulze
0ecbe54708
Ensure sufficient size in exceptionn case
2023-11-06 08:55:09 +00:00
Alexey Milovidov
c0e058178c
Fix error
2023-11-06 05:43:55 +01:00
Alexey Milovidov
1f058d6370
Fix style
2023-11-06 04:57:13 +01:00
Alexey Milovidov
0f9e7594e9
Remove useless header files
2023-11-06 04:09:28 +01:00
Alexey Milovidov
184e6f840e
Remove useless header files
2023-11-06 03:49:55 +01:00
Alexey Milovidov
a710ac6011
This is actually better
2023-11-06 03:00:03 +01:00
Alexey Milovidov
e85c695bcf
This is actually better
2023-11-06 02:57:26 +01:00
Alexey Milovidov
46af71ab7c
This is actually better
2023-11-06 02:36:09 +01:00
Alexey Milovidov
2d1351c3a6
Remove useless header
2023-11-06 01:34:06 +01:00
Alexey Milovidov
995e8a91e5
Remove fat symbols
2023-11-06 01:12:29 +01:00
Robert Schulze
8a64066ee1
+ formatQueryOrNull()
2023-11-05 20:24:23 +00:00
Robert Schulze
38e9793cd7
Fix junk in formatQuery()
2023-11-05 20:13:49 +00:00
Robert Schulze
60fa1c3d26
Cosmetics
2023-11-05 20:08:09 +00:00
Alexey Milovidov
cd94d02455
Merge branch 'master' into coverage
2023-11-04 21:49:59 +01:00
Robert Schulze
480e284db1
Merge pull request #56088 from jh0x/feature-from-days-zero
...
Add function `fromDaysSinceYearZero()`
2023-11-04 00:17:04 +01:00
Robert Schulze
a43647b4e0
Fix FastTest
2023-11-03 10:53:25 +00:00
Robert Schulze
ff353616bc
Fix style
2023-11-03 10:50:06 +00:00
Robert Schulze
341b17ba80
Remove more dead code
2023-11-02 21:44:47 +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
92f0c7e522
Move DAYS_BETWEEN_YEARS_0_AND_1970 back to indicate the relation to ToDaysSinceYearZero
2023-11-02 20:58:53 +00:00
Robert Schulze
c6f826d929
Uppercase constants
2023-11-02 20:56:01 +00:00
Robert Schulze
4ccdad50c1
Remove a few unnecessary function implementations
2023-11-02 20:56:01 +00:00
Robert Schulze
dee8775c6a
Use FunctionArgumentDescriptors in getReturnTypeImpl()
2023-11-02 20:56:01 +00:00
Alexey Milovidov
b0bd052f8d
Merge pull request #55837 from ClibMouse/feature/big-endian-ip-aggregate-function-states
...
Correct aggregate functions ser/deserialization to be endianness-independent.
2023-11-02 14:50:26 +01:00
Joanna Hulboj
3a85f79fcb
More fixes after CI, negatives check
2023-11-02 13:19:18 +00:00
vdimir
bda15d174a
Add stringJaccardIndexUTF8
2023-11-02 11:38:11 +00:00
vdimir
14ba4696f9
Rename jaccardIndex -> stringJaccardIndex, upd doc
2023-11-02 11:37:50 +00:00
vdimir
a5c98638fe
Add function jaccardIndex back with better perf
2023-11-02 11:37:49 +00:00
Dorota Szeremeta
a702240783
Fixed spelling of "Continous" to "Continuous" ( #56143 )
2023-11-01 14:58:03 +01:00
Joanna Hulboj
e5b4d7fac7
Fix failing checks
2023-10-31 21:00:11 +00:00
Joanna Hulboj
4d76c22a0d
Flesh out logic for fromDaysSinceYearZero and tests
2023-10-31 21:00:11 +00:00
Joanna Hulboj
087cf431a7
Stub of function fromDaysSinceYearZero
2023-10-31 21:00:11 +00:00
kothiga
f570b85e25
Disambiguate crc32 from crc32c for s390x impl.
2023-10-31 11:21:37 -07: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
0d01548aca
Merge pull request #56112 from ClickHouse/maybe-smaller-binary
...
Maybe smaller binary
2023-10-31 01:56:01 +01:00
Nikolay Degterinsky
58b188e880
Forbid implicit cast of numbers to intervals with the string argument
2023-10-30 18:03:35 +01:00
Alexey Milovidov
3631e476eb
Merge pull request #54947 from amosbird/minmax-combinator
...
Introduce -ArgMin/-ArgMax combinators.
2023-10-30 03:35:28 +01:00
Alexey Milovidov
0de51d2b0f
Maybe smaller binary
2023-10-30 03:23:22 +01:00
Alexey Milovidov
aaca32f6a7
Add function coverageAll
2023-10-30 03:22:49 +01:00
Alexey Milovidov
ccf5003442
Maybe smaller binary
2023-10-30 03:20:04 +01:00
Alexey Milovidov
6eff22568f
Revert "Add function getHttpHeader"
2023-10-29 19:50:39 +03:00
Alexey Milovidov
70e3dd808c
Granular code coverage with introspection
2023-10-29 02:07:24 +01:00
Alexey Milovidov
e8e96ea77a
Throw an error when comparing time intervals with different units
2023-10-27 23:24:55 +02:00
Robert Schulze
a68e8be08f
Merge pull request #55696 from zvonand/zvonand-datetime-ranges
...
Introduce setting `date_time_overflow_behavior` to control the overflow behavior when converting to `Date` / `Date32` / `DateTime` / `DateTime64`
2023-10-27 10:40:20 +02: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
lgbo
489e6d9bdc
Optimization for getting value from map, arrayElement
(1/2) ( #55929 )
2023-10-27 09:54:25 +02:00
Andrey Zvonov
2da12ec291
Update FunctionsConversion.h
2023-10-27 01:13:52 +02:00
zvonand
35baf7792d
cleanup after rebase, add [[unlikely]]
2023-10-26 23:56:45 +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
Andrey Zvonov
71287788d1
Merge branch 'ClickHouse:master' into zvonand-datetime-ranges
2023-10-26 14:14:32 +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
Andrey Zvonov
6fccd55d30
Merge branch 'ClickHouse:master' into zvonand-datetime-ranges
2023-10-26 10:49:38 +02:00
Alexey Milovidov
4351446373
Merge pull request #55910 from ClickHouse/remove-cpp-templates
...
Remove C++ templates, because they are stupid
2023-10-26 09:29:07 +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
Alexey Milovidov
b2114fe561
Address review suggestions
2023-10-25 22:08:57 +02:00
Anton Popov
0ca1b006f3
fix build
2023-10-25 18:53:58 +00:00
Anton Popov
3e6ecf1858
correct the implementation of function jsonMergePatch
2023-10-25 15:17:28 +00: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
Salvatore Mesoraca
0bda99e880
Fix code style
2023-10-25 11:07:34 +02:00
Robert Schulze
975f954a26
Merge pull request #54629 from aiven-sal/aiven-sal/cast2
...
Re-add fix for accurateCastOrNull
2023-10-25 10:31:40 +02:00
Salvatore Mesoraca
a95a2a5d66
formatQueryOneLine: create new function format queries on one line
2023-10-25 10:10:04 +02:00
Robert Schulze
46d34a412f
Fix style
2023-10-25 07:56:10 +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
3e0b6eb77b
formatQuery: validate args using helper function
2023-10-24 16:10:43 +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
Salvatore Mesoraca
6b7b3a641f
Fix more fuzzying issues
2023-10-24 13:36:56 +02:00
Salvatore Mesoraca
22ae8731f2
Handle the case when bool serialization generates incorrect values on failure
...
Fix issue found by fuzzer
2023-10-24 13:36:55 +02:00
Salvatore Mesoraca
fa76a88c4f
Revert "Revert "Fix issues in accurateCastOrNull""
...
This reverts commit 71d37d64ab
.
2023-10-24 13:36:52 +02:00
Robert Schulze
b9b66e76dd
Switch accumulator and array arguments
2023-10-23 14:59:16 +00:00
Robert Schulze
bb856680e7
Incorporated review feedback
2023-10-23 14:07:14 +00:00
Robert Schulze
80a048d5f8
Tempoarily revert string support in plus and minus operators
2023-10-22 20:31:22 +00:00
Robert Schulze
c2215cb5f0
Support string arguments
2023-10-22 09:28:45 +00:00
Alexey Milovidov
660d3df372
Remove C++ templates, because they are stupid
2023-10-22 03:45:56 +02:00
Robert Schulze
69a387b778
Refactorings in FunctionDateOrDateTimeAddInterval
2023-10-20 15:47:16 +00:00
Robert Schulze
3bbaec3fd7
FunctionOpDate::getReturnTypeImpl(): Use validateFunctionArgumentTypes
2023-10-19 18:22:10 +00: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
50ee412b19
Merge pull request #55625 from ClickHouse/preparation-key-condition
...
KeyCondition: preparation
2023-10-14 22:13:39 +02:00
Robert Schulze
dcedc5f10b
Merge remote-tracking branch 'rschu1ze/master' into string-args-in-week-functions
2023-10-14 08:32:33 +00:00
Alexey Milovidov
a904ee970f
KeyCondition: preparation
2023-10-14 04:32:25 +02: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
593c3114a1
Remove TODO comment
2023-10-13 13:24:26 +00: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
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
Yakov Olkhovskiy
0738984edf
Merge pull request #42510 from ClibMouse/Kusto-phase2-oss-pr
...
Support Kusto Query Language dialect - phase 2
2023-10-11 08:35:26 -04:00
Robert Schulze
b7936cb953
Update src/Functions/byteSwap.cpp
...
Co-authored-by: Priyansh Agrawal <agrawal.priyansh@yahoo.in>
2023-10-10 23:45:57 +02:00
Robert Schulze
96e3a4f9b4
Update src/Functions/byteSwap.cpp
...
Co-authored-by: Priyansh Agrawal <agrawal.priyansh@yahoo.in>
2023-10-10 23:45:23 +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
Robert Schulze
624dbcdb4f
Merge pull request #49794 from Lirikl/arrayFold
...
Added function `arrayFold()`
2023-10-09 13:38:35 +02:00
Robert Schulze
878e36df5b
Fix spelling
2023-10-09 07:41:23 +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
07e0cc196d
Some fixups
2023-10-08 20:27:13 +00:00
Robert Schulze
2848548c63
Merge remote-tracking branch 'rschu1ze/master' into arrayFold
2023-10-08 16:32:36 +00:00
Robert Schulze
0f7ca6149b
(Hopefully) fix clang-tidy
2023-10-08 16:30:02 +00: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
38c64b3cd1
Fix tests
2023-10-08 14:26:31 +00:00
Alexey Milovidov
caf3c85b38
Merge pull request #55275 from azat/sparse-columns-function-fix
...
Fix functions execution over sparse columns
2023-10-08 15:27:46 +02:00
Alexey Milovidov
a7716a56ac
Update IFunction.cpp
2023-10-08 16:27:33 +03:00
Robert Schulze
3f33c32684
Fix style
2023-10-08 10:46:28 +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
4b7ffa52c5
Refactorings
2023-10-07 16:45:52 +00:00
alesapin
e55a615f06
Merge pull request #55253 from vitlibar/fix-async-insert-access-check-for-defaults
...
Evaluate defaults during async insert safer
2023-10-07 12:26:35 +02:00
Priyansh Agrawal
ed2c85bbce
Remove comment
2023-10-06 19:35:11 +00:00
Azat Khuzhin
ce7f0e5ae7
Fix functions execution over sparse columns
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-06 16:16:50 +02:00
Vitaly Baranov
76766a200e
Fix access checking in evaluations of defaults during async insert.
2023-10-05 10:26:44 +02:00
Priyansh Agrawal
540d966033
Docs and comment
2023-10-02 22:51:58 +01:00
Priyansh Agrawal
46fbe00c9a
Implement byteswap for following dtypes.
...
UInt[8|16|32|64]
TODOs:
- Improve NOT_IMPLEMENTED error message.
- Add implementation for FixedStrings (reverse the bytes).
- See whether this needs to be implemented for UInt[128|256] and
signed integers as well.
2023-10-02 19:02:33 +01:00
Alexey Milovidov
5ebd8ef41d
Remove Meilisearch
2023-09-30 06:02:38 +02:00
Alexey Milovidov
8ea30b9fed
Fix build
2023-09-29 05:35:24 +02:00
avogar
e8ea41e2d4
Add setting to print pretty deep nested Tuples
2023-09-28 22:17:44 +00:00
Alexey Milovidov
383f8c58b6
Merge pull request #55080 from ClickHouse/remove-jaccard
...
Remove String Jaccard Index
2023-09-28 21:56:53 +03: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
凌涛
eab7b34e23
support column query
2023-09-28 17:13:06 +08:00
Nikolay Degterinsky
63253a0243
Fix UBSan error
2023-09-28 07:45:00 +00:00
Amos Bird
51f603bdfc
Rename as suggested.
2023-09-28 15:11:56 +08:00
Amos Bird
056b2693a3
Reorganize combinators into dedicated folder
2023-09-28 15:11:55 +08:00
Yong Wang
8c9da6bacf
Merge remote-tracking branch 'origin/master' into Kusto-phase2-oss-pr
2023-09-27 22:35:14 -07:00
Alexey Milovidov
e1afc64c79
Fix wrong names
2023-09-28 07:24:39 +02:00
Alexey Milovidov
4a01136dc9
Fixup
2023-09-28 07:22:16 +02:00
Alexey Milovidov
f5d8573232
Remove String Jaccard Index
2023-09-28 06:30:45 +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
2d750e9e2f
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks
2023-09-27 12:15:29 +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
robot-ch-test-poll3
aa139774a0
Merge pull request #55042 from ucasfl/review-fix
...
Review fix for #54935
2023-09-27 09:36:55 +02:00
flynn
3d299d5f9d
Review fix
2023-09-27 03:16:52 +00:00
Robert Schulze
cde10fe7b5
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks
2023-09-26 18:59:41 +00:00
avogar
d5de17f6aa
Fix bad cast to ColumnVector<Int128> in function if
2023-09-26 12:19:25 +00:00
Robert Schulze
9fff447716
Re-enable clang-tidy checks
2023-09-26 09:34:12 +00:00
Robert Schulze
0149e4226f
Cosmetics
2023-09-25 17:09:22 +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
9559a6949b
added subseconds to formatReadableTimeDelta and add tests
2023-09-24 13:04:56 +02:00
Alexey Milovidov
776c6adfe6
Merge pull request #54553 from Avogar/better-types-inference
...
Better integer types inference for Int64/UInt64 fields
2023-09-24 02:07:48 +03: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
f8056ee282
Add function hammingDistance
2023-09-22 17:43:52 +00:00