Alexander Tokmakov
72e8615bec
formatting of some exception messages
2023-01-17 20:03:56 +01:00
Yakov Olkhovskiy
7a5a36cbed
Merge branch 'master' into refactoring-ip-types
2023-01-04 11:11:06 -05:00
Alexey Milovidov
fcefaa602f
Fix error
2023-01-03 01:24:56 +01:00
Alexey Milovidov
fa16abe05e
Fix error
2023-01-03 01:23:57 +01:00
Alexey Milovidov
e855d3519a
Merge branch 'master' into refactoring-ip-types
2023-01-02 21:58:53 +03:00
Alexey Milovidov
d95aca1b32
Fix fuzzer
2023-01-02 01:51:50 +01:00
Alexey Milovidov
e20eb570c5
Fix bad cast in monotonicity analysis
2023-01-01 20:42:15 +01:00
Yakov Olkhovskiy
0641066183
Merge branch 'master' into refactoring-ip-types
2022-12-08 11:12:05 -05:00
Robert Schulze
4abc36774e
Some cleanup of isDeterministic(InScopeOfQuery)()
...
In cases where the implementation simply repeates the implementation
inherited from the base class, it can be omitted.
2022-12-07 14:34:31 +00:00
Nikolay Degterinsky
e6e6afe8f7
Merge pull request #43731 from amosbird/issue_43622
...
Fix issue #43622
2022-11-29 02:49:38 +01:00
Yakov Olkhovskiy
4d7d9cbd0b
some comments and beautification
2022-11-29 01:07:25 +00:00
Yakov Olkhovskiy
770b520ded
Merge branch 'master' into refactoring-ip-types
2022-11-28 08:50:19 -05:00
Amos Bird
65ce5abb63
Fix suspicious lowcard key
2022-11-27 18:40:26 +08:00
Yakov Olkhovskiy
19a01b77eb
refactoring on settings for casting, dirty hack for inaccessable context in cast function (will require review), docs appended
2022-11-25 15:57:49 +00:00
Yakov Olkhovskiy
08456a2421
special treatment for FixedString(16) as a binary representation for IPv6 in casting to better match previous behavior, some cleanup, test fixed
2022-11-24 05:00:28 +00:00
Nikita Taranov
dc9be92733
impl
2022-11-23 23:08:14 +01:00
Yakov Olkhovskiy
988b030bfd
bug fix, refactoring IPv6 to struct with overridden comparison
2022-11-22 12:57:19 +00:00
Yakov Olkhovskiy
ee3ce9de70
bugs fixed, some optimization, cleanup, test fixed
2022-11-21 07:45:42 +00:00
Yakov Olkhovskiy
dbaeabcf38
fixed some bugs, some functions corrected, some tests corrected
2022-11-18 20:10:27 +00:00
Yakov Olkhovskiy
9aeebf3bdf
Merge branch 'master' into refactoring-ip-types
2022-11-14 09:21:54 -05:00
Yakov Olkhovskiy
4d144be39c
replace domain IP types (IPv4, IPv6) with native
2022-11-14 14:17:17 +00:00
Alexander Gololobov
661c5cd0ae
fixed type
2022-11-12 23:58:09 +01:00
Joanna Hulboj
42de468665
Fixed unexpected behaviour of Interval types with subquery and casting
2022-11-12 19:47:06 +00:00
Anton Popov
2ae3cfa9e0
Merge branch 'master' into dynamic-columns-14
2022-10-31 16:15:19 +01:00
Nikolai Kochetov
db422fa903
Merge pull request #42410 from ClickHouse/fix-multi-arg-monotonicity
...
Fix possible LOGICAL_ERROR in binary ariphmetics monotonicity.
2022-10-26 14:11:23 +02:00
Azat Khuzhin
bcc8d9f9d9
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
* upstream/master:
Fix strange code in date monotonicity
Add a test
Fix error
Add tests
Remove trash
2022-10-23 07:45:10 +02:00
Alexey Milovidov
7bf1f4cdfa
Fix strange code in date monotonicity
2022-10-22 09:02:20 +02:00
Azat Khuzhin
4eeb7337ed
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
Conflicts:
- src/Common/intExp.h
- src/Functions/DateTimeTransforms.h
- src/Functions/FunctionsConversion.h
2022-10-21 22:51:56 +02:00
Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Nikolai Kochetov
0df9d2f5cc
Fix tests.
2022-10-20 13:41:27 +00:00
Nikolai Kochetov
58b6194a2d
Fix another one case.
2022-10-19 15:08:00 +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
Alexander Tokmakov
4175f8cde6
abort instead of __builtin_unreachable in debug builds
2022-10-07 21:49:08 +02:00
Robert Schulze
385be7f528
Fix tests
2022-10-03 18:05:16 +00:00
Robert Schulze
ff2cbff4a1
Check boundaries similar to integer handling
2022-10-03 15:50:26 +00:00
Robert Schulze
123afbca80
Fix toDateTime64() for negative floats
...
Resolves #41686
2022-10-03 13:33:12 +00:00
Anton Popov
6e61cf92f5
Merge remote-tracking branch 'upstream/master' into HEAD
2022-10-03 13:16:57 +00:00
Alexey Milovidov
45afacdae4
Merge pull request #41186 from ClickHouse/fix-three-fourth-of-trash
...
Fix more than half of the trash
2022-09-22 07:28:26 +03:00
Duc Canh Le
e2bd478b98
fix conversion from nullable fixed string to string
2022-09-20 10:05:18 +08:00
Alexey Milovidov
000b6ac81c
Fix error
2022-09-19 09:30:48 +02:00
Alexey Milovidov
ab4db2d0c4
Fix 5/6 of trash
2022-09-19 08:50:53 +02:00
Denny Crane
6540d55d42
Merge branch 'master' into test/zvonand-monotonic
2022-09-16 17:02:09 -03:00
Anton Popov
f0a404e2c8
Merge remote-tracking branch 'upstream/master' into HEAD
2022-09-06 15:51:16 +00:00
zvonand
24dfa0c64a
tryfix darwin
2022-08-25 12:28:15 +03:00
zvonand
3797e7cfbe
Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-minmax
2022-08-25 01:57:49 +03:00
zvonand
a61fd73c88
fix test fails
2022-08-25 00:26:44 +03:00
zvonand
5c00428940
updated as was before
2022-08-24 19:46:17 +03:00
Alexander Gololobov
c9177d2cb3
Merge pull request #40475 from ClickHouse/allow-conversion-from-string-datetime64-to-date-date32
...
Allow conversion from String with DateTime64 to Date and Date32
2022-08-24 17:33:20 +02:00
zvonand
b4564099f9
fix inherited parts
2022-08-24 17:07:30 +03:00
zvonand
e257f9d0cd
update docs, tests + small fixes
2022-08-24 01:09:14 +03:00
zvonand
42f86442ab
updated tests + toStartOfWeek
2022-08-23 18:33:09 +03:00
zvonand
6abe09a725
updated tests + teStartOfWeek
2022-08-23 17:13:39 +03:00
zvonand
a7a1269e60
updated tests + improve logic
2022-08-22 17:36:55 +03:00
zvonand
537fb8c4ee
fix 1
2022-08-22 17:36:55 +03:00
Alexey Milovidov
a3e4753d83
Merge pull request #40466 from ClickHouse/remove-some-trash
...
Remove some trash
2022-08-22 15:59:50 +03:00
Alexey Milovidov
c4a60b8123
Allow conversion from String with DateTime64 to Date and Date32
2022-08-22 00:23:10 +02:00
Alexey Milovidov
996aa2d126
Remove some trash
2022-08-21 20:46:33 +02:00
Alexey Milovidov
6fbff6d1f6
Revert "Avx enablement"
2022-08-21 15:47:02 +03:00
Alexey Milovidov
8374f31306
Merge pull request #39425 from arenadata/ADQM-485
...
Add support of dates from year 1900 to 2299 for Date32 and DateTime64
2022-08-11 05:01:53 +03:00
Tanya Bragin
eb61db3b67
initial changes to close #37492
2022-08-08 19:45:00 -07:00
zvonand
99a458c12d
small fix
2022-08-03 16:36:36 +03:00
Roman Vasin
b462366415
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-485
2022-07-25 17:55:47 +00:00
Roman Vasin
b412ea5f6d
Improve generateRandom() for Date32; fix tests 01087_table_function_generate, 01277_fromUnixTimestamp64, 01691_DateTime64_clamp and 01702_toDateTime_from_string_clamping
2022-07-25 17:06:11 +00:00
Robert Schulze
6a631426b7
Disable vectorization for uint64 --> float32 cast
2022-07-22 12:49:16 +00:00
Robert Schulze
cad0e7a62c
Move hot loop inside nested if/else statements
...
- required to control the vectorization of a specific cast which
annotates the loop using pragmas
2022-07-22 11:53:23 +00:00
Alexander Tokmakov
a8da5d96fc
remove some dead and commented code
2022-07-21 15:05:48 +02:00
Roman Vasin
e3192cf753
Correct docs to reflect new range 1900..2299 for Date32 and DateTime64; Cleanup code
2022-07-20 15:19:02 +00:00
Roman Vasin
1d0818d9cf
Set max year to 2299; Code cleanup; Make working 02245_make_datetime64 test
2022-07-15 10:33:52 +00:00
Roman Vasin
266039ea64
Correct gTests for DateLUT
2022-07-14 19:00:17 +00:00
Miel Donkers
4e9f396a48
Small improvement of the error message to hint at possible issue ( #38458 )
2022-06-28 13:36:30 +02:00
Anton Popov
f592a802a1
Merge pull request #37482 from CurtizJ/json-new-serialization
...
Better binary serialization of `ColumnObject`
2022-06-03 13:29:19 +02:00
liuneng1994
7b15055e72
fix toString error on DatatypeDate32
...
Signed-off-by: liuneng1994 <1398775315@qq.com>
2022-06-02 16:56:43 +08:00
Anton Popov
e96af9fd75
better binary serialization of ColumnObject
2022-05-24 13:16:11 +00:00
avogar
f69c3175af
Fix comments
2022-05-19 10:13:44 +00:00
avogar
cb8646fbb4
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-array-map-nothing
2022-05-19 07:18:48 +00:00
avogar
415aabd4d0
Fix Nullable(String) to Nullable(Bool/IPv4/IPv6) conversion
2022-05-16 19:15:18 +00:00
avogar
0311dbb422
Add default implementation for Nothing, support arrays of nullable for arrayFilter and similar functions
2022-05-12 15:15:31 +00:00
Anton Popov
515f68eead
Merge remote-tracking branch 'upstream/master' into dynamic-columns-14
2022-05-06 16:10:51 +00:00
Anton Popov
566c08086a
support Object type inside other types
2022-05-06 14:44:00 +00:00
Yakov Olkhovskiy
9c1a06703a
Merge pull request #36564 from awakeljw/fork_chmaster2
...
Fix CAST Object to Object with Nullable subcolumns
2022-05-04 14:40:43 -04:00
awakeljw
0a32fe4da3
Fix CAST Object to Object with Nullable subcolumns
2022-05-02 11:31:13 +08:00
Azat Khuzhin
767acd53fb
Add ability to pass range of rows to Aggregator
...
v2: fix compiled aggregate functions (seek result to row_start)
v3: fix compiled aggregate functions (seek args to row_start)
v4: change signatures for JIT
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:57:55 +03:00
Vladimir C
2ebae2d722
Merge pull request #35682 from CurtizJ/dynamic-columns-6
2022-04-06 11:48:07 +02:00
avogar
af4bfec051
Fix bug in conversion from custom types to string
2022-03-30 11:19:03 +00:00
Anton Popov
6cbdc6af00
remove obsolete parameter
2022-03-28 18:44:53 +00:00
Anton Popov
67195bfdd5
support schema inference for type Object in format JSONEachRow
2022-03-25 21:51:53 +00:00
Maksim Kita
4b88c6f934
Merge pull request #35534 from kitaisreal/set-in-ipv4-ipv6-address-cast-fix
...
Fix cast into IPv4, IPv6 address in IN section
2022-03-24 01:26:25 +01:00
Maksim Kita
31b3d2e840
Fixed tests
2022-03-23 19:59:26 +01:00
Maksim Kita
ff2d5dae83
Fix cast into IPv4, IPv6 address in IN section
2022-03-23 15:22:08 +01:00
mergify[bot]
e11ef05c2b
Merge branch 'master' into issue_33147
2022-03-21 13:40:17 +00:00
Robert Schulze
df73c75456
Replace more uses of std::enable_if for SFINAE by concepts
...
- enable_if is usually regarded as fragile and unreadable
- C++20 concepts are much easier to read and produce more expressive error messages
- this is follow-up to PR #35347 but this time most of the remaining and
more complex usages of enable_if in the codebase were replaced.
2022-03-17 20:44:55 +01:00
alesapin
457fa0d1ba
Merge pull request #23932 from CurtizJ/dynamic-columns
...
Support of dynamic subcolumns (JSON data type)
2022-03-17 10:45:46 +01:00
Maksim Kita
f837f609f3
Merge pull request #35240 from kitaisreal/cast-to-ip-address-refactoring
...
Standardize behaviour of CAST into IPv4, IPv6, toIPv4, toIPv6 functions
2022-03-17 10:26:32 +01:00
Anton Popov
0ba78c3c3a
Merge remote-tracking branch 'upstream/master' into HEAD
2022-03-16 15:28:09 +00:00
Maksim Kita
538f8cbaad
Fix clang-tidy warnings in Disks, Formats, Functions folders
2022-03-14 18:17:35 +00:00
Maksim Kita
36dc7f03a4
Fixed tests
2022-03-14 09:14:41 +00:00
Maksim Kita
3a2b3ce503
Standardize behaviour of CAST into IPv4, IPv6, toIPv4, toIPv6 functions
2022-03-12 17:12:05 +00:00
Anton Popov
df3b07fe7c
Merge remote-tracking branch 'upstream/master' into HEAD
2022-03-03 22:25:28 +00:00
HaiBo Li
2ea18b3085
Fix the bug that the toDatetime function overflows ( #32898 )
...
* Fixed overflow bug of the function toDatetime/toDate/toDate32/parseDateTimeBestEffort
2022-03-02 10:06:38 +03:00
Anton Popov
2758db5341
add more comments
2022-03-01 19:32:55 +03:00