Robert Schulze
edd29492c3
Merge pull request #50893 from rschu1ze/snowflake-crash
...
Fix LOGICAL_ERROR in snowflakeToDateTime*()
2023-06-14 09:42:21 +02:00
Robert Schulze
76f69f2b44
Revert overengineering
2023-06-13 15:52:06 +00:00
Robert Schulze
3e3b8ff5f6
More robustness
2023-06-13 12:24:31 +00:00
Kseniia Sumarokova
0ab3dc9261
A bit safer UserDefinedSQLFunctionVisitor ( #50913 )
...
* Update UserDefinedSQLFunctionVisitor.cpp
* Update UserDefinedSQLFunctionVisitor.cpp
---------
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-06-13 11:25:13 +02:00
Robert Schulze
79bc884733
Stabilize tests
2023-06-13 08:56:22 +00:00
ltrk2
edb4a644b1
Update FunctionsCodingIP.cpp
2023-06-12 14:23:22 -04:00
ltrk2
a4285d56b2
Fix compilation error on big-endian platforms
2023-06-12 14:23:22 -04:00
Robert Schulze
65d83e45cb
Fix crash in snowflakeToDateTime(), follow-up to #50834
2023-06-12 16:21:49 +00:00
Robert Schulze
128e8c20d5
Merge pull request #50709 from arenadata/ADQM-867
...
Added numeric arguments support to some Date/DateTime conversion functions
2023-06-12 17:08:14 +02:00
Dmitry Kardymon
9fd3f197c6
Merge branch 'master' into ADQM-867
2023-06-11 22:06:37 +03:00
Robert Schulze
2146c35608
Fix style
2023-06-11 07:40:39 +00:00
Robert Schulze
72b9d75a84
Add compat setting for non-const timezones
...
SQL function toTimezone() converts a Date or DateTime into another
timezone. The problem is that the timezone is part of the Date /
DateTime type but not part of the internal representation (value). This
led to the fact that toTimeZone() wqith non-const timezones produced
wrong and misleading results until #48471 (shipped with v23.4) enforced
a const timezone.
Unfortunately, this PR also broke existing table definitions with
non-const timezones, e.g. in ALIAS expressions. So while #48471
addressed the issue appropriately, it is really backwards-incompatible.
This PR adds a setting to toggle the behavior and makes it also part of
the compatibility profile.
2023-06-10 16:56:42 +00:00
Dmitry Kardymon
d0c2c1dbad
Add test and reorder if's
2023-06-09 12:06:43 +00:00
Dmitry Kardymon
7a02a70ad4
Add value to exceptions text
2023-06-09 11:11:49 +00:00
Dmitry Kardymon
de70e322cf
Fix by pull request comments
2023-06-09 10:29:44 +00:00
Dmitry Kardymon
7263769d20
Add constexpr / fix date check
2023-06-08 06:12:54 +00:00
Nikita Mikhaylov
c0f2141bd0
Revert "date_trunc function to always return DateTime type" ( #50670 )
2023-06-07 19:51:41 +02:00
Dmitry Kardymon
cf886d8ced
Remove IsConvertible()
2023-06-06 11:08:21 +00:00
robot-ch-test-poll
e1889ffb3a
Merge pull request #50529 from kitaisreal/function-if-constant-folding
...
Function if constant folding
2023-06-05 17:29:29 +02:00
Maksim Kita
c860db0fb7
Fixed tests
2023-06-05 10:32:46 +03:00
johanngan
8d4206df66
Review comments: Use constexpr-if in more places
...
Also add a comment about the apparent lack of type checking on the limit
column.
2023-06-04 23:46:04 -05:00
johanngan
c0f162c5b6
Add dictGetAll function for RegExpTreeDictionary
...
This function outputs an array of attribute values from all regexp nodes
that matched in a regexp tree dictionary. An optional final argument can
be passed to limit the array size.
2023-06-04 23:46:04 -05:00
Azat Khuzhin
bf127f4e1e
MSan support for Rust
...
Previously you have to unpoison memory from the Rust, however Rust does
supports MSan, so let's simply use it.
But for this we need nightly Rust and recompile standard library.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-06-04 23:04:55 +02:00
Dmitry Kardymon
c032dee3b4
Merge remote-tracking branch 'origin/master' into ADQM-867
2023-06-04 18:45:47 +00:00
Maksim Kita
46cbdeeb7e
Fixed tests
2023-06-04 15:02:46 +03:00
Maksim Kita
7a7e03a2ff
Function if constant folding
2023-06-03 14:16:59 +03:00
Alexey Milovidov
054b908b9c
Merge pull request #50416 from ClickHouse/revert-49656-rs/entropy-learned-hashing
...
Revert "Add SQL functions for Entropy Learned Hashing"
2023-06-03 06:50:48 +03:00
Kruglov Pavel
f87f98fb80
Merge pull request #47409 from Avogar/random-structure
...
Add new function generateRandomStructure
2023-06-02 18:50:35 +02:00
Robert Schulze
12993890a8
Merge branch 'master' into revert-49656-rs/entropy-learned-hashing
2023-06-02 15:32:33 +02:00
Dmitry Kardymon
fa5f890a7a
Added ru function descriptions (docs)
2023-06-02 12:03:50 +00:00
Robert Schulze
7070eac9db
Merge branch 'ClickHouse:master' into fix-const-int-hashing
2023-06-02 10:57:18 +02:00
Dmitry Kardymon
c7088a8180
Trying to fix build
2023-06-02 07:26:55 +00:00
Dmitry Kardymon
8a10baec7f
Add dateTime range check
2023-06-02 06:25:00 +00:00
Dmitry Kardymon
a22e80eed5
Remove whitespaces
2023-06-01 19:52:48 +00:00
Dmitry Kardymon
38abcd1c44
Add nullable support to DateTimeTransformImpl
2023-06-01 19:25:53 +00:00
Dmitry Kardymon
54d526c75c
Add cast type supprt to DateTimeTransformImpl
2023-06-01 14:22:57 +00:00
Robert Schulze
45b1fcdeda
Merge pull request #50315 from arenadata/ADQM-810
...
Add new function toLastDayOfWeek()
2023-06-01 16:19:14 +02:00
Robert Schulze
03628bde42
Fix hashing of const integer values
2023-06-01 12:54:34 +00:00
Robert Schulze
93ba75b370
Remove parentheses from single-line if/for
2023-06-01 12:51:38 +00:00
Robert Schulze
56fa98cb77
Rename variables for better readability
2023-06-01 12:51:30 +00:00
Alexander Tokmakov
9a2b3afb7e
Revert "Fix msan issue in keyed siphash"
2023-06-01 15:02:32 +03:00
Kruglov Pavel
7485962443
Merge pull request #50343 from Avogar/fix-bit-shift-func
...
Fix bitShift* functions with both constant arguments
2023-06-01 13:53:36 +02:00
Robert Schulze
08d98329b0
Revert "Add SQL functions for Entropy Learned Hashing"
2023-06-01 10:12:09 +02:00
Robert Schulze
c5343679df
Merge branch 'master' into msan-siphash-keyed
2023-05-31 09:05:24 +02:00
Robert Schulze
fc157b3dad
Merge branch 'master' into msan-siphash-keyed
2023-05-30 21:30:33 +02:00
Dmitry Kardymon
a48c4fd370
Merge remote-tracking branch 'origin/master' into ADQM-884
2023-05-30 14:56:37 +00:00
avogar
c87e8c1f23
Fix bitShift* functions with both constant arguments
2023-05-30 12:12:54 +00:00
Dmitry Kardymon
c25980bcf4
Trying to fix toDateOrDefault()
2023-05-30 12:02:44 +00:00
Robert Schulze
1cbce21968
Better, pt. II
2023-05-30 11:46:23 +00:00
Robert Schulze
2d06947522
Better
2023-05-30 09:06:45 +00:00