Alexey Milovidov
a3ac276741
Add type promotion for modulo of division of negative number
2021-02-04 14:56:04 +03:00
Haavard Kvaalen
e6f1ce48fe
Fix handling of TABLE_MAP_EVENT from MySQL
...
The MySQL replication code assumed that row update events would be
preceded by a single TABLE_MAP_EVENT. However, if a single SQL
statement modifies rows in multiple tables, MySQL will first send
table map events for all involved tables, and then row update events.
Depending on circumstances, this could lead to an exception when the row
update was processed, the update could be incorrectly dropped, or the
update could be applied to the wrong table.
2021-02-04 12:49:10 +01:00
Nikolai Kochetov
7a2279d067
Fix removing filter column from expression after Filter actions split
2021-02-04 14:44:00 +03:00
Alexander Kuzmenkov
02ca7386b1
Merge pull request #19951 from ClickHouse/aku/window-prototype-3
...
CURRENT ROW and offset for start of ROWS frame
2021-02-04 14:33:13 +03:00
alexey-milovidov
298a29ef52
Merge pull request #20049 from ClickHouse/point-in-polygon-ubsan
...
Avoid UBSan report in pointInPolygon
2021-02-04 13:51:30 +03:00
hexiaoting
41698d65f5
fix style error
2021-02-04 17:50:59 +08:00
hexiaoting
81b0cc381d
enlarge signed type for modulo function
2021-02-04 17:36:09 +08:00
kreuzerkrieg
1cc9e03d0c
return DiskType
instead of String
IDisk::getType() as in the rest of storage interfaces
2021-02-04 10:01:21 +02:00
alexey-milovidov
c13759dd85
Merge pull request #20047 from azat/pushing-to-views-elapsed-fix
...
Fix log message with elapsed time while pushing to views
2021-02-04 10:44:12 +03:00
Alexander Kuzmenkov
c1c71fc8e9
ROWS OFFSET frame end
2021-02-04 10:41:09 +03:00
Alexey Milovidov
15a529f6f7
Whitespace
2021-02-04 10:35:49 +03:00
Alexey Milovidov
ab30c95b41
Adjust perf test
2021-02-04 10:35:30 +03:00
alexey-milovidov
5c1b96dd93
Merge pull request #19886 from azat/writer-partial-buffer
...
Allow writing partial buffer
2021-02-04 10:29:47 +03:00
alexey-milovidov
29dd4030c6
Merge pull request #20011 from azat/UBsan-fixes-21.2.1
...
UBsan fixes
2021-02-04 10:27:08 +03:00
Alexander Kuzmenkov
4abbbae583
Merge remote-tracking branch 'origin/aku/window-prototype-3' into HEAD
2021-02-04 09:52:02 +03:00
Alexander Kuzmenkov
1b6262f874
cleanup
2021-02-04 09:51:46 +03:00
Alexander Kuzmenkov
773b364fe4
check some bounds
2021-02-04 09:50:56 +03:00
Alexander Kuzmenkov
b281d39036
yamake
2021-02-04 09:40:09 +03:00
Alexander Kuzmenkov
d6372bd3d9
linker woes
2021-02-04 09:38:42 +03:00
alexey-milovidov
227698ea1c
Update adopters.md
2021-02-04 09:21:36 +03:00
Alexey Milovidov
55c7fdbbe4
Merge branch 'master' into fix-rocksdb
2021-02-04 08:30:02 +03:00
Alexey Milovidov
cb1ad9f391
Merge branch 'fix-rocksdb' of github.com:yandex/ClickHouse into fix-rocksdb
2021-02-04 08:29:58 +03:00
alexey-milovidov
5731189515
Merge pull request #20045 from ClickHouse/executable-dictionary-data-race
...
Fix data race in executable dictionary
2021-02-04 08:28:58 +03:00
Alexey Milovidov
f467104919
Merge branch 'point-in-polygon-ubsan' of github.com:yandex/ClickHouse into point-in-polygon-ubsan
2021-02-04 08:27:15 +03:00
Alexey Milovidov
47a56b9d1d
Merge branch 'master' into point-in-polygon-ubsan
2021-02-04 08:26:41 +03:00
Alexey Milovidov
474f151707
More docs for MergeTreeSettings
2021-02-04 08:26:22 +03:00
Azat Khuzhin
fb4596f433
Fix clang-analyzer-optin.cplusplus.VirtualCall
2021-02-04 02:08:41 +03:00
Azat Khuzhin
984445b44b
Fix UBsan reports in quantileTiming
...
UBsan reports [1]:
../src/AggregateFunctions/QuantileTiming.h:442:27: runtime error: 1.84467e+19 is outside the range of representable values of type 'unsigned long' Received signal -3 Received signal Unknown signal (-3)
[1]: https://clickhouse-test-reports.s3.yandex.net/19971/e15f5d9cb5b36482d1ae9ca069074fb200f2ab37/fuzzer_ubsan/report.html#fail1
Follow-up for: #19394
2021-02-04 02:01:48 +03:00
Azat Khuzhin
da79469092
Add quantilesTimingWeighted into documentation
2021-02-04 02:01:48 +03:00
Azat Khuzhin
c59f22d7b4
Change PushingToViewsBlockOutputStream::process, to accept ref to ViewInfo
...
It is safe, no need to use quirks with passing view_num.
2021-02-04 00:44:24 +03:00
Azat Khuzhin
50d8a87c27
Fix logging of elapsed time while pushing to views
...
Logging from PushingToViewsBlockOutputStream::write() is incorrect,
since it does not takes into account squashing (default to 1<<20 rows
and 256<<20), whle write will be done from
PushingToViewsBlockOutputStream::writeSuffix().
Fixes : #19378
2021-02-04 00:44:24 +03:00
Azat Khuzhin
ca071381e1
Merge remote-tracking branch 'upstream/master' into writer-partial-buffer
2021-02-03 23:46:39 +03:00
Azat Khuzhin
46f5268135
Fix incorrect WriteBuffer interface usage in message brokers producers
...
WriteBufferToKafkaProducer and WriteBufferToRabbitMQProducer uses
WriteBuffer::set(nullptr, 0) which will leave the WriteBuffer in the
invalid state, since after this available() is 0 and next() will not
call nextImpl().
Stacktrace:
2021.02.02 05:27:16.248056 [ 97 ] {} <Fatal> BaseDaemon: ########################################
2021.02.02 05:27:16.248697 [ 97 ] {} <Fatal> BaseDaemon: (version 21.3.1.5880, build id: 03F265087EF651DC4D8E569775FE9E91FFA5DE76) (from thread 93) (query_id: 8c34c220-f66a-45d2-8f4f-01193cede98b) Received signal Segmentation fault (11)
2021.02.02 05:27:16.249030 [ 97 ] {} <Fatal> BaseDaemon: Address: NULL pointer. Access: write. Address not mapped to object.
2021.02.02 05:27:16.249623 [ 97 ] {} <Fatal> BaseDaemon: Stack trace: 0x12f3dbeb 0x12efd075 0x12efc90e 0x12ebb0e9 0x12ebe0cb 0x12e1da18 0x12a8c857 0x1219aa62 0x1218fc82 0x1218fdaa 0x11e3f120 0x12dfa3df 0x12df42a4 0x12e00fa8 0x158cdc63 0x158ce38f 0x15a36b72 0x15a35110 0x15a33918 0x8adf12d 0x7fb5e0fe3609 0x7fb5e0f0a293
2021.02.02 05:27:16.408985 [ 97 ] {} <Fatal> BaseDaemon: 5. ./obj-x86_64-linux-gnu/../src/IO/WriteHelpers.h:64: DB::JSONEachRowRowOutputFormat::writeRowStartDelimiter() @ 0x12f3dbeb in /usr/bin/clickhouse
2021.02.02 05:27:16.534797 [ 97 ] {} <Fatal> BaseDaemon: 6. ./obj-x86_64-linux-gnu/../src/Processors/Formats/IRowOutputFormat.cpp:80: DB::IRowOutputFormat::write(std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn> > > const&, unsigned long) @ 0x12efd075 in /usr/bin/clickhouse
2021.02.02 05:27:16.599210 [ 97 ] {} <Fatal> BaseDaemon: 7. ./obj-x86_64-linux-gnu/../src/Processors/Formats/IRowOutputFormat.cpp:0: DB::IRowOutputFormat::consume(DB::Chunk) @ 0x12efc90e in /usr/bin/clickhouse
2021.02.02 05:27:16.680733 [ 97 ] {} <Fatal> BaseDaemon: 8. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3211: DB::IOutputFormat::write(DB::Block const&) @ 0x12ebb0e9 in /usr/bin/clickhouse
2021.02.02 05:27:16.798768 [ 97 ] {} <Fatal> BaseDaemon: 9. ./obj-x86_64-linux-gnu/../src/Processors/Formats/OutputStreamToOutputFormat.cpp:15: DB::OutputStreamToOutputFormat::write(DB::Block const&) @ 0x12ebe0cb in /usr/bin/clickhouse
2021.02.02 05:27:16.981593 [ 97 ] {} <Fatal> BaseDaemon: 10. ./obj-x86_64-linux-gnu/../src/DataStreams/MaterializingBlockOutputStream.h:0: DB::MaterializingBlockOutputStream::write(DB::Block const&) @ 0x12e1da18 in /usr/bin/clickhouse
2021.02.02 05:27:17.090383 [ 97 ] {} <Fatal> BaseDaemon: 11. ./obj-x86_64-linux-gnu/../src/Storages/RabbitMQ/RabbitMQBlockOutputStream.cpp:61: DB::RabbitMQBlockOutputStream::write(DB::Block const&) @ 0x12a8c857 in /usr/bin/clickhouse
2021.02.02 05:27:17.140425 [ 97 ] {} <Fatal> BaseDaemon: 12. ./obj-x86_64-linux-gnu/../src/DataStreams/AddingDefaultBlockOutputStream.cpp:0: DB::AddingDefaultBlockOutputStream::write(DB::Block const&) @ 0x1219aa62 in /usr/bin/clickhouse
2021.02.02 05:27:17.190282 [ 97 ] {} <Fatal> BaseDaemon: 13. ./obj-x86_64-linux-gnu/../src/DataStreams/SquashingBlockOutputStream.cpp:0: DB::SquashingBlockOutputStream::finalize() @ 0x1218fc82 in /usr/bin/clickhouse
2021.02.02 05:27:17.240052 [ 97 ] {} <Fatal> BaseDaemon: 14. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2844: DB::SquashingBlockOutputStream::writeSuffix() @ 0x1218fdaa in /usr/bin/clickhouse
2021.02.02 05:27:17.294527 [ 97 ] {} <Fatal> BaseDaemon: 15. ./obj-x86_64-linux-gnu/../src/DataStreams/CountingBlockOutputStream.h:37: DB::CountingBlockOutputStream::writeSuffix() @ 0x11e3f120 in /usr/bin/clickhouse
2021.02.02 05:27:17.405442 [ 97 ] {} <Fatal> BaseDaemon: 16. ./obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:521: DB::TCPHandler::processInsertQuery(DB::Settings const&) @ 0x12dfa3df in /usr/bin/clickhouse
2021.02.02 05:27:17.475822 [ 97 ] {} <Fatal> BaseDaemon: 17. ./obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x12df42a4 in /usr/bin/clickhouse
2021.02.02 05:27:17.609845 [ 97 ] {} <Fatal> BaseDaemon: 18. ./obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1419: DB::TCPHandler::run() @ 0x12e00fa8 in /usr/bin/clickhouse
2021.02.02 05:27:17.695292 [ 97 ] {} <Fatal> BaseDaemon: 19. ./obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x158cdc63 in /usr/bin/clickhouse
2021.02.02 05:27:17.833612 [ 97 ] {} <Fatal> BaseDaemon: 20. ./obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:0: Poco::Net::TCPServerDispatcher::run() @ 0x158ce38f in /usr/bin/clickhouse
2021.02.02 05:27:17.907391 [ 97 ] {} <Fatal> BaseDaemon: 21. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/ScopedLock.h:36: Poco::PooledThread::run() @ 0x15a36b72 in /usr/bin/clickhouse
2021.02.02 05:27:18.033949 [ 97 ] {} <Fatal> BaseDaemon: 22. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x15a35110 in /usr/bin/clickhouse
2021.02.02 05:27:18.122761 [ 97 ] {} <Fatal> BaseDaemon: 23. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/include/Poco/SharedPtr.h:277: Poco::ThreadImpl::runnableEntry(void*) @ 0x15a33918 in /usr/bin/clickhouse
2021.02.02 05:27:18.283663 [ 97 ] {} <Fatal> BaseDaemon: 24. __tsan_thread_start_func @ 0x8adf12d in /usr/bin/clickhouse
2021.02.02 05:27:18.284153 [ 97 ] {} <Fatal> BaseDaemon: 25. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
2021.02.02 05:27:18.284544 [ 97 ] {} <Fatal> BaseDaemon: 26. __clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
2021.02.02 05:27:21.675458 [ 97 ] {} <Fatal> BaseDaemon: Calculated checksum of the binary: B53B58DB6CF8186EEC9EA9273F135E44. There is no information about the reference checksum.
2021.02.02 05:27:28.078805 [ 1 ] {} <Fatal> Application: Child process was terminated by signal 11.
2021-02-03 23:46:28 +03:00
alexey-milovidov
9d8033d8d6
Merge pull request #20050 from azat/fix-tests-references
...
Fix tests *.reference files
2021-02-03 22:49:04 +03:00
Azat Khuzhin
cc43f92719
Fix tests *.reference files
...
Using:
sed -i 's/MergeTree with order/MergeTree with order/g' tests/queries/0_stateless/*.reference
Fixes: dc2afc4795
("Fix double whitespace #18383 ")
2021-02-03 22:45:54 +03:00
alexey-milovidov
c715f0e2ed
Merge pull request #20044 from bharatnc/ncb/docs-fix-tracelog
...
Docs (system.trace_log) - fix unit for event_time_microseconds
2021-02-03 22:34:43 +03:00
alexey-milovidov
ca06d3b317
Merge branch 'master' into fix-rocksdb
2021-02-03 21:28:50 +03:00
alexey-milovidov
402c018d1e
Merge pull request #19947 from azat/dist-INSERT-block-structure-mismatch
...
Fix "Block structure mismatch" for INSERT into Distributed
2021-02-03 21:27:45 +03:00
alexey-milovidov
0aca4a740c
Update 01700_point_in_polygon_ubsan.sql
2021-02-03 21:26:03 +03:00
Alexey Milovidov
eb8b2e883a
Add a test
2021-02-03 21:25:04 +03:00
Alexey Milovidov
05c5c8ed80
Avoid UBSan report in pointInPolygon
2021-02-03 21:23:54 +03:00
Alexey Milovidov
dc2afc4795
Fix double whitespace #18383
2021-02-03 21:12:14 +03:00
alexey-milovidov
867f5a8975
Merge pull request #20029 from ClickHouse/remove-useless-code-5
...
Remove useless code
2021-02-03 21:06:43 +03:00
Alexey Milovidov
40939ff6ba
Fix data race in executable dictionary
2021-02-03 20:45:50 +03:00
bharatnc
dc6a9ab9f9
Docs - fix unit for event_time_microseconds system.trace_log
2021-02-03 09:38:02 -08:00
Nikolai Kochetov
c39c965612
Merge pull request #19962 from keen-wolf/timezoneOffset
...
Implement the timezoneOffset function
2021-02-03 20:37:34 +03:00
Alexey Milovidov
82ab793731
Fix missing type check in StorageEmbeddedRocksDB
2021-02-03 20:35:23 +03:00
Alexander Kuzmenkov
ec382d8812
BETWEEN CURRENT ROW AND CURRENT ROW
2021-02-03 17:55:40 +03:00
Alexander Kuzmenkov
35754abb4a
CURRENT ROW frame start for RANGE frame
2021-02-03 17:22:37 +03:00
Alexander Kuzmenkov
7c55ecf67d
cleanup
2021-02-03 16:41:59 +03:00