Azat Khuzhin
c4b5eed4ff
Fix DateTime64 initialization (to match DateTime behaviour)
...
There was no specializations for toDateTime64(<numeric>), and because of
this default decimal conversion was used, however this is not enough for
DateTime/DateTime64 types, since the date may overflow and the proper
check is required (like DateTime has), and this what UBsan found [1]:
../src/IO/WriteHelpers.h:812:33: runtime error: index 508 out of bounds for type 'const char [201]' Received signal -3 Received signal Unknown signal (-3)
Backtrace:
(gdb) bt
0 LocalDateTime::LocalDateTime (this=0x7fffffff8418, year_=1970, month_=1 '\001', day_=1 '\001', hour_=2 '\002', minute_=0 '\000', second_=254 '\376') at LocalDateTime.h:83
1 0x00000000138a5edb in DB::writeDateTimeText<(char)45, (char)58, (char)32, (char)46> (datetime64=..., scale=7, buf=..., date_lut=...) at WriteHelpers.h:852
2 0x0000000019c379b4 in DB::DataTypeDateTime64::serializeText (this=0x7ffff5c4b0d8, column=..., row_num=0, ostr=..., settings=...) at DataTypeDateTime64.cpp:66
3 0x0000000019d297e4 in DB::IDataType::serializeAsText (this=0x7ffff5c4b0d8, column=..., row_num=0, ostr=..., settings=...) at IDataType.cpp:387
[1]: https://clickhouse-test-reports.s3.yandex.net/19527/cea8ae162ffbf92e5ed29304ab010704c5d611c8/fuzzer_ubsan/report.html#fail1
Also fix CAST for DateTime64
2021-02-06 13:04:53 +03:00
Azat Khuzhin
0627ba0e36
Fix timezone argument for DateTime64
...
It should be marked with always const, otherwise it will bail:
Code: 44, e.displayText() = DB::Exception: Illegal column String of time zone argument of function, must be constant string: While processing toDateTime(-1, 1, 'GMT'), Stack trace (when copying this message, always include the lines below):
2021-02-06 13:04:53 +03:00
Azat Khuzhin
f4c2048bf2
Fix toDateTime64(toDate()/toDateTime()) for DateTime64
...
Maybe this is even does not worth it, but at least there was code that
assume that this should work - ToDateTime64Transform in
FunctionsConversion.h.
2021-02-06 13:04:53 +03:00
alesapin
31b4e1619c
Merge pull request #20120 from ClickHouse/update_poco_logging
...
Add logging if Poco cannot allocate thread in tcp server
2021-02-06 10:25:00 +03:00
alexey-milovidov
5c281bd2f1
Merge pull request #20133 from ClickHouse/fix_if_tuple
...
Fix if with tuple then/else arguments
2021-02-06 09:52:54 +03:00
alexey-milovidov
dee8f1fbf2
Merge pull request #20132 from ClickHouse/fix-data-type-parser-exponential
...
Fix the case when DataType parser may have exponential complexity
2021-02-06 08:42:40 +03:00
alesapin
011109c82a
Merge pull request #17348 from xjewer/alex/CLICKHOUSE-606_deduplication_UUID
...
CLICKHOUSE-606: query deduplication based on parts' UUID
2021-02-05 22:47:34 +03:00
alesapin
71cc3625bf
Merge pull request #20124 from ClickHouse/fix_kafka_in_runner
...
Use fixed version of confluent-kafka library in integration tests
2021-02-05 22:46:47 +03:00
alesapin
f81a407cdd
Fix if with tuple then/else arguments
2021-02-05 22:39:26 +03:00
Alexey Milovidov
60f2e89cfb
Fix the case when DataType parser may have exponential complexity
2021-02-05 22:21:30 +03:00
alesapin
6247d59c32
Use fixed version
2021-02-05 18:30:45 +03:00
alesapin
92a4c4e318
Add librdkafka to integration tests runner
2021-02-05 18:28:20 +03:00
alexey-milovidov
20a3b9782f
Merge pull request #20063 from hexiaoting/dev_mod
...
Add more tests for modulo of division of negative number
2021-02-05 17:26:24 +03:00
alesapin
7b96ef61e8
Add logging if Poco cannot allocate thread in tcp server
2021-02-05 14:48:09 +03:00
Alexander Kuzmenkov
f7dbdc623c
Update style.md
2021-02-05 13:45:38 +03:00
alesapin
aafadc06df
Better types
2021-02-05 13:31:46 +03:00
alesapin
65d7b39cd6
Merge pull request #20073 from ClickHouse/fix-split-filter-remove-column
...
Fix removing of filter column when split filter actions.
2021-02-05 13:31:02 +03:00
alesapin
449e8e3fd9
More checks for setting
2021-02-05 13:15:02 +03:00
tavplubix
f59dc7f40d
Merge pull request #20066 from havardk/multi-table-update
...
Fix handling of TABLE_MAP_EVENT from MySQL
2021-02-05 13:11:59 +03:00
alesapin
7cbc135e72
More isolated code
2021-02-05 12:54:34 +03:00
Ilya Yatsishin
7777d94abf
Merge pull request #20082 from den-crane/patch-9
2021-02-05 12:34:06 +03:00
hexiaoting
a379779f87
Merge remote-tracking branch 'origin/master' into dev_mod and add more test cases
2021-02-05 17:09:14 +08:00
vdimir
1e2c302248
Merge pull request #18377 from Jokser/disk-s3-backup-restore-metadata
2021-02-05 10:44:59 +03:00
Alexander Kuzmenkov
7bca563e5a
Merge pull request #20068 from ClickHouse/aku/long-flaky
...
detect unmarked long tests in flaky check
2021-02-05 10:07:19 +03:00
Alexander Kuzmenkov
cb791dbc7f
Update 01443_merge_truncate_long.sh
2021-02-05 10:06:53 +03:00
Alexander Kuzmenkov
a1bcd4b128
Update 01232_preparing_sets_race_condition_long.sh
2021-02-05 10:06:39 +03:00
Alexander Kuzmenkov
52b52ede22
Update 00840_long_concurrent_select_and_drop_deadlock.sh
2021-02-05 10:06:17 +03:00
alexey-milovidov
34151eea2c
Merge pull request #20067 from ClickHouse/mod-negative-type-promotion
...
Add type promotion for modulo of division of negative number
2021-02-05 09:31:46 +03:00
hexiaoting
b892fff406
Add alexey's fix: using another logic and more comments
2021-02-05 10:31:16 +08:00
Ivan
0db2aa3c2e
Check that position doesn't go beyond end ( #20039 )
2021-02-05 01:21:24 +03:00
vdimir
91ea99129e
Merge pull request #19999 from kreuzerkrieg/change_the_idisk_interface
...
return `DiskType` instead of `String` in IDisk::getType()
2021-02-04 22:46:54 +03:00
Alexander Kuzmenkov
cea2fcb18c
Update index.md
2021-02-04 21:17:25 +03:00
Alexander Kuzmenkov
6160502665
Update index.md
2021-02-04 21:16:26 +03:00
Alexander Kuzmenkov
a500bd70a4
Update index.md
2021-02-04 21:14:02 +03:00
Alexander Kuzmenkov
56087f4569
Merge pull request #20060 from ClickHouse/aku/window-prototype-2
...
ROWS OFFSET frame end
2021-02-04 20:59:38 +03:00
Alexander Kuzmenkov
26020daca5
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-04 20:58:25 +03:00
Alexander Kuzmenkov
08691fef45
Merge pull request #20041 from ClickHouse/aku/window-prototype
...
CURRENT ROW frame start for RANGE frame
2021-02-04 20:55:05 +03:00
Alexander Kuzmenkov
3796a183ba
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-04 20:54:36 +03:00
Alexander Kuzmenkov
b0fba3dece
mark as long
2021-02-04 20:51:32 +03:00
alexey-milovidov
6e05bb25ad
Merge pull request #20083 from anthonynsimon/anthonynsimon
...
Update adopters list
2021-02-04 19:40:12 +03:00
Alexey Milovidov
85b5805c3c
Fix tests
2021-02-04 19:36:31 +03:00
vdimir
30f98795bc
Merge remote-tracking branch 'upstream/master' into disk-s3-backup-restore-metadata
2021-02-04 18:38:28 +03:00
Anthony N. Simon
237ee39228
Add Panelbear to adopters
2021-02-04 16:34:32 +01:00
Haavard Kvaalen
e49a051092
Remove superfluous semicolon
2021-02-04 16:21:28 +01:00
Denny Crane
0dc12ebfe1
max_array_size = 1mil
2021-02-04 11:15:33 -04:00
Denny Crane
d219540a9c
max_array_size = 1mil
2021-02-04 11:13:32 -04:00
Haavard Kvaalen
a161969b50
Fix incorrectly placed brace
2021-02-04 14:43:18 +01:00
Nikolai Kochetov
4d66bc413c
Update test.
2021-02-04 16:19:20 +03:00
Alexander Kuzmenkov
858043cd53
detect unmarked long tests in flaky check
2021-02-04 15:06:48 +03:00
alexey-milovidov
c12f2d460e
Merge pull request #19972 from ClickHouse/fix-rocksdb
...
Fix missing type check in EmbeddedRocksDB
2021-02-04 15:06:12 +03:00