Nikolai Kochetov
|
cf05c17cfa
|
Rewrite QueryPlan tree optimizations traverse.
|
2021-01-27 20:36:53 +03:00 |
|
Nikolai Kochetov
|
e9f893d9b0
|
Move query plan optimixations into separate files.
|
2021-01-27 16:57:26 +03:00 |
|
alexey-milovidov
|
3296ad29e2
|
Merge pull request #19676 from azat/clickhouse-test-fix
clickhouse-test tiny cleanup
|
2021-01-27 15:12:18 +03:00 |
|
Vitaly Baranov
|
4706c17a99
|
Merge pull request #19512 from olgarev/revolg-DOCSUP-5917-Multiple_names
DOCSUP-5917: Multiple names
|
2021-01-27 14:16:17 +03:00 |
|
Vitaly Baranov
|
6c75197039
|
Merge pull request #19488 from olgarev/revolg-DOCSUP-5917-SHOW_ACCESS_statement
DOCSUP-5917: Docs for SHOW ACCESS statement
|
2021-01-27 14:14:16 +03:00 |
|
alexey-milovidov
|
5e54c9742f
|
Merge pull request #19683 from ClickHouse/mysql-compatibility
Merging #19387
|
2021-01-27 13:48:26 +03:00 |
|
alexey-milovidov
|
c3828a1fb2
|
Merge pull request #19660 from CurtizJ/sync-directory
Better abstractions in disk interface
|
2021-01-27 13:47:53 +03:00 |
|
Maksim Kita
|
5baa981ed4
|
Merge pull request #19682 from bharatnc/ncb/fix-table-function-doc
Docs - fixes the docs for table function
|
2021-01-27 13:00:19 +03:00 |
|
Nikolai Kochetov
|
e3ac2639d2
|
Merge pull request #19648 from ClickHouse/fix-merge-join-constants
Fix merge join constants
|
2021-01-27 12:49:27 +03:00 |
|
Maksim Kita
|
bd81f43ecb
|
Merge pull request #19672 from ClickHouse/bigint-remove-old-code
Remove old code for BigInt.
|
2021-01-27 11:28:45 +03:00 |
|
Maksim Kita
|
3f0b0287da
|
Merge pull request #19678 from kitaisreal/dictionary-better-error-message-during-attribute-parsing
Dictionary better error message during attribute parsing
|
2021-01-27 11:28:03 +03:00 |
|
alesapin
|
bfbb2c5943
|
Add missing argument (clickhouse-test)
|
2021-01-27 10:22:58 +03:00 |
|
alesapin
|
784ff75d55
|
Merge pull request #19661 from ClickHouse/fix_obvious_deadlock_in_testkeeper
Fix deadlock in testkeeper
|
2021-01-27 10:09:11 +03:00 |
|
Alexey Milovidov
|
fe2e38bf8c
|
Skip two tests in Arcadia because it builds without base64
|
2021-01-27 05:09:30 +03:00 |
|
Alexey Milovidov
|
16b7a0e8ad
|
Merge branch 'master' into mysql-compatibility
|
2021-01-27 05:07:30 +03:00 |
|
alexey-milovidov
|
9dd33c61e0
|
Merge pull request #19680 from ClickHouse/remove-outdated-index-granularity
Remove outdated index_granularity from docs
|
2021-01-27 04:54:18 +03:00 |
|
alexey-milovidov
|
2028228f4b
|
Merge pull request #18684 from amosbird/betterwith
better CTE and with global
|
2021-01-27 04:33:17 +03:00 |
|
Alexey Milovidov
|
3562250594
|
Remove outdated index_granularity from docs
|
2021-01-27 03:58:48 +03:00 |
|
Anton Popov
|
09e5bdd1ef
|
fix style check
|
2021-01-27 03:57:28 +03:00 |
|
Anton Popov
|
b15848e2f0
|
Update IDisk.h
|
2021-01-27 03:32:18 +03:00 |
|
Olga Revyakina
|
22a0354d2a
|
Wrong syntax fixed
|
2021-01-27 01:40:14 +03:00 |
|
Maksim Kita
|
e0dc6f9417
|
Dictionary better error message during attribute parsing
|
2021-01-27 00:50:23 +03:00 |
|
Azat Khuzhin
|
93d375f67a
|
Check clickhouse-test with pylint during style check
|
2021-01-27 00:14:23 +03:00 |
|
Olga Revyakina
|
3a6a1b6437
|
One word added
|
2021-01-27 00:09:10 +03:00 |
|
Maksim Kita
|
46be4d12ac
|
Merge pull request #19663 from ucasFL/fix-build
fix special build on clang11
|
2021-01-27 00:00:31 +03:00 |
|
Maksim Kita
|
81548e051e
|
Merge pull request #19527 from ucasFL/sign
add sign math function
|
2021-01-26 23:57:31 +03:00 |
|
Azat Khuzhin
|
1ef38148ac
|
Fix all pylint warnings in clickhouse-test
|
2021-01-26 23:36:04 +03:00 |
|
Azat Khuzhin
|
3e8d76da38
|
Add pylintrc config
|
2021-01-26 23:35:56 +03:00 |
|
Azat Khuzhin
|
c4454ab095
|
Fix colored() usage in clickhouse-test
|
2021-01-26 23:23:00 +03:00 |
|
alexey-milovidov
|
e8dedbf210
|
Merge pull request #19532 from azat/UBsan-report-fixes-v2
Forbid lcm/gcd for floats (and few UBsan reports fixes)
|
2021-01-26 23:16:54 +03:00 |
|
Alexey Milovidov
|
f3929b151a
|
Remove even more code
|
2021-01-26 22:04:03 +03:00 |
|
bharatnc
|
b51c74c3e8
|
Fixes the docs for table function
|
2021-01-26 10:49:56 -08:00 |
|
Alexey Milovidov
|
877be11398
|
Remove useless code, part 2
|
2021-01-26 21:32:46 +03:00 |
|
alexey-milovidov
|
2892aa39c0
|
Merge pull request #19590 from ClickHouse/cassandra-patch-leshikus2
Update Cassandra submodule with patch by @leshikus
|
2021-01-26 21:27:54 +03:00 |
|
Alexey Milovidov
|
5f13fdddc0
|
Remove useless code from BigInt
|
2021-01-26 21:22:40 +03:00 |
|
vdimir
|
fc8b8d23b2
|
Merge pull request #18812 from excitoon-favorites/betters3endpoints
Added prefix-based S3 endpoint settings
|
2021-01-26 20:47:57 +03:00 |
|
Nikolai Kochetov
|
1bc8c32e9f
|
Merge pull request #19209 from sevirov/sevirov-DOCSUP-4918-update_description_final
DOCSUP-4918: Update the description of SELECT...FINAL
|
2021-01-26 20:00:23 +03:00 |
|
Dmitriy
|
9f4e51d36b
|
Merge remote-tracking branch 'remotes/clickhouse/master' into sevirov-DOCSUP-4918-update_description_final
|
2021-01-26 19:35:41 +03:00 |
|
Dmitriy
|
6a99955610
|
Update the description of the max_final_threads setting
Поправил формулировку назначения настройки max_final_threads.
|
2021-01-26 19:32:34 +03:00 |
|
feng lv
|
2dd723e214
|
fix special build on clang11
|
2021-01-26 15:20:51 +00:00 |
|
Amos Bird
|
d6c0479cf9
|
add normalizeQueryKeepNames and normalizedQueryHashKeepNames (#18910)
|
2021-01-26 17:51:30 +03:00 |
|
Anton Popov
|
c7070da85a
|
better abstractions in disk interface
|
2021-01-26 17:49:35 +03:00 |
|
alesapin
|
0ff05d2403
|
Fix deadlock in testkeeper
|
2021-01-26 17:30:29 +03:00 |
|
alexey-milovidov
|
985805fd01
|
Merge pull request #19583 from ClickHouse/merge-log-comment
Merging #18549
|
2021-01-26 17:11:07 +03:00 |
|
vdimir
|
bcae07128a
|
Merge pull request #19530 from taiyang-li/length_for_map
enable length for map, which returns keys number in map
|
2021-01-26 16:21:21 +03:00 |
|
vdimir
|
a4643bcff2
|
Whitespace fixes
|
2021-01-26 16:19:13 +03:00 |
|
Nikolai Kochetov
|
b0c324227d
|
Remove comment.
|
2021-01-26 15:39:55 +03:00 |
|
feng lv
|
cea8ae162f
|
fix test
|
2021-01-26 12:37:44 +00:00 |
|
Nikolai Kochetov
|
87246ea91b
|
Fix header for MergeJoin with constants.
|
2021-01-26 15:37:42 +03:00 |
|
Azat Khuzhin
|
e97c01c3ea
|
Fix UAF of the CompressedWriteBuffer after Connection::disconnect (#19599)
ASan report [1]:
<details>
Stacktrace with stripped shared_ptr and vector stuff:
```
==86==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d0002b4888 at pc 0x00000a997056 bp 0x7f9e2ad55c00 sp 0x7f9e2ad55bf8
READ of size 8 at 0x60d0002b4888 thread T3 (TCPHandler)
0 0xa997055 in DB::BufferBase::Buffer::end() const obj-x86_64-linux-gnu/../src/IO/BufferBase.h:40:46
1 0xa997055 in DB::BufferBase::available() const obj-x86_64-linux-gnu/../src/IO/BufferBase.h:81:68
2 0xa997055 in DB::BufferBase::hasPendingData() const obj-x86_64-linux-gnu/../src/IO/BufferBase.h:94:56
3 0xa997055 in DB::WriteBuffer::nextIfAtEnd() obj-x86_64-linux-gnu/../src/IO/WriteBuffer.h:67:14
4 0xa997055 in DB::WriteBuffer::write(char const*, unsigned long) obj-x86_64-linux-gnu/../src/IO/WriteBuffer.h:78:13
5 0x1dcff45e in DB::CompressedWriteBuffer::nextImpl() obj-x86_64-linux-gnu/../src/Compression/CompressedWriteBuffer.cpp:37:9
6 0x1dcffb8a in DB::WriteBuffer::next() obj-x86_64-linux-gnu/../src/IO/WriteBuffer.h:46:13
7 0x1dcffb8a in DB::CompressedWriteBuffer::~CompressedWriteBuffer() obj-x86_64-linux-gnu/../src/Compression/CompressedWriteBuffer.cpp:54:9
11 0xab600cf in DB::Connection::~Connection() obj-x86_64-linux-gnu/../src/Client/Connection.h:114:28
15 0xac4adb9 in PoolBase<DB::Connection>::PooledObject::~PooledObject() obj-x86_64-linux-gnu/../src/Common/PoolBase.h:35:12
30 0xac485e4 in PoolBase<DB::Connection>::~PoolBase() obj-x86_64-linux-gnu/../src/Common/PoolBase.h:105:26
44 0xad2722f in DB::Cluster::ShardInfo::~ShardInfo() obj-x86_64-linux-gnu/../src/Interpreters/Cluster.h:167:12
52 0xad393b0 in DB::Cluster::~Cluster() obj-x86_64-linux-gnu/../src/Interpreters/Cluster.h:30:7
56 0x1f99f269 in DB::StorageDistributed::~StorageDistributed() obj-x86_64-linux-gnu/../src/Storages/StorageDistributed.cpp:338:41
69 0x1e231846 in DB::Context::~Context() obj-x86_64-linux-gnu/../src/Interpreters/Context.cpp:501:19
71 0x2073ccd3 in DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:416:23
72 0x2075db1c in DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1417:9
0x60d0002b4888 is located 56 bytes inside of 136-byte region [0x60d0002b4850,0x60d0002b48d8)
freed by thread T3 (TCPHandler) here:
0 0xa93d682 in operator delete(void*, unsigned long) (/workspace/clickhouse+0xa93d682)
1 0x2059d592 in std::__1::__shared_weak_count::__release_shared() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2518:9
2 0x2059d592 in std::__1::shared_ptr<DB::WriteBuffer>::~shared_ptr() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3212:19
3 0x2059d592 in std::__1::shared_ptr<DB::WriteBuffer>::operator=(std::__1::shared_ptr<DB::WriteBuffer>&&) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3243:5
4 0x2059d592 in DB::Connection::disconnect() obj-x86_64-linux-gnu/../src/Client/Connection.cpp:143:9
5 0x205d6e6d in DB::MultiplexedConnections::disconnect() obj-x86_64-linux-gnu/../src/Client/MultiplexedConnections.cpp:159:25
6 0x1de6ec19 in DB::RemoteQueryExecutor::~RemoteQueryExecutor() obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutor.cpp:86:34
10 0x20bf0e2c in DB::RemoteSource::~RemoteSource() obj-x86_64-linux-gnu/../src/Processors/Sources/RemoteSource.cpp:22:29
21 0x20869680 in DB::Pipe::~Pipe() obj-x86_64-linux-gnu/../src/Processors/Pipe.h:25:7
22 0x20869680 in DB::QueryPipeline::reset() obj-x86_64-linux-gnu/../src/Processors/QueryPipeline.cpp:79:1
23 0x1de2d89d in DB::BlockIO::reset() obj-x86_64-linux-gnu/../src/DataStreams/BlockIO.cpp:45:14
24 0x1de2d9f7 in DB::BlockIO::operator=(DB::BlockIO&&) obj-x86_64-linux-gnu/../src/DataStreams/BlockIO.cpp:57:5
25 0x20762731 in DB::QueryState::operator=(DB::QueryState&&) obj-x86_64-linux-gnu/../src/Server/TCPHandler.h:31:8
26 0x2073c70c in DB::QueryState::reset() obj-x86_64-linux-gnu/../src/Server/TCPHandler.h:85:15
27 0x2073c70c in DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:399:19
28 0x2075db1c in DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1417:9
29 0x266eeebe in Poco::Net::TCPServerConnection::start() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:43:3
30 0x266ef9db in Poco::Net::TCPServerDispatcher::run() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:112:19
31 0x269b1204 in Poco::PooledThread::run() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:199:14
32 0x269ab756 in Poco::ThreadImpl::runnableEntry(void*) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345:27
33 0x7f9f06ea8608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477:8
previously allocated by thread T3 (TCPHandler) here:
0 0xa93ca1d in operator new(unsigned long) (/workspace/clickhouse+0xa93ca1d)
1 0x2059b8cd in void* std::__1::__libcpp_operator_new<unsigned long>(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:235:10
8 0x2059b8cd in DB::Connection::connect(DB::ConnectionTimeouts const&) obj-x86_64-linux-gnu/../src/Client/Connection.cpp:112:15
9 0x205a0a1d in DB::Connection::getServerRevision(DB::ConnectionTimeouts const&) obj-x86_64-linux-gnu/../src/Client/Connection.cpp:289:9
10 0x205bdafa in DB::ConnectionPoolWithFailover::tryGetEntry(DB::IConnectionPool&, DB::ConnectionTimeouts const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, DB::Settings const*, DB::QualifiedTableName const*) obj-x86_64-linux-gnu/../src/Client/ConnectionPoolWithFailover.cpp:251:45
11 0x205c06cf in DB::ConnectionPoolWithFailover::getManyChecked()::$_8::operator()() const obj-x86_64-linux-gnu/../src/Client/ConnectionPoolWithFailover.cpp:169:16
20 0x205bd61f in DB::ConnectionPoolWithFailover::getManyChecked(DB::ConnectionTimeouts const&, DB::Settings const*, DB::PoolMode, DB::QualifiedTableName const&) obj-x86_64-linux-gnu/../src/Client/ConnectionPoolWithFailover.cpp:172:12
28 0x1de6f425 in DB::RemoteQueryExecutor::sendQuery() obj-x86_64-linux-gnu/../src/DataStreams/RemoteQueryExecutor.cpp:143:31
29 0x1fdd1410 in DB::getStructureOfRemoteTableInShard(DB::Cluster const&, DB::Cluster::ShardInfo const&, DB::StorageID const&, DB::Context const&, std::__1::shared_ptr<DB::IAST> const&) obj-x86_64-linux-gnu/../src/Storages/getStructureOfRemoteTable.cpp:78:12
30 0x1fdd74a8 in DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, DB::Context const&, std::__1::shared_ptr<DB::IAST> const&) obj-x86_64-linux-gnu/../src/Storages/getStructureOfRemoteTable.cpp:131:32
31 0x1d42cd79 in DB::TableFunctionRemote::getActualTableStructure(DB::Context const&) const obj-x86_64-linux-gnu/../src/TableFunctions/TableFunctionRemote.cpp:261:12
32 0x1d42b4e2 in DB::TableFunctionRemote::executeImpl(std::__1::shared_ptr<DB::IAST> const&, DB::Context const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::ColumnsDescription) const obj-x86_64-linux-gnu/../src/TableFunctions/TableFunctionRemote.cpp:222:26
33 0x1e2c8b15 in DB::ITableFunction::execute(std::__1::shared_ptr<DB::IAST> const&, DB::Context const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::ColumnsDescription) const obj-x86_64-linux-gnu/../src/TableFunctions/ITableFunction.cpp:24:16
34 0x1e2417ff in DB::Context::executeTableFunction(std::__1::shared_ptr<DB::IAST> const&) obj-x86_64-linux-gnu/../src/Interpreters/Context.cpp:1007:35
35 0x1f15bd67 in DB::JoinedTables::getLeftTableStorage() obj-x86_64-linux-gnu/../src/Interpreters/JoinedTables.cpp:162:42
36 0x1ebf393f in DB::InterpreterSelectQuery::InterpreterSelectQuery() obj-x86_64-linux-gnu/../src/Interpreters/InterpreterSelectQuery.cpp:306:33
42 0x1eb3bf90 in DB::InterpreterFactory::get(std::__1::shared_ptr<DB::IAST>&, DB::Context&, DB::SelectQueryOptions const&) obj-x86_64-linux-gnu/../src/Interpreters/InterpreterFactory.cpp:110:16
43 0x1f4d9dee in DB::executeQueryImpl(char const*, char const*, DB::Context&, bool, DB::QueryProcessingStage::Enum, bool, DB::ReadBuffer*) obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:520:28
44 0x1f4d7067 in DB::executeQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::Context&, bool, DB::QueryProcessingStage::Enum, bool) obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:900:30
45 0x2073b0bc in DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:260:24
46 0x2075db1c in DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1417:9
```
</details>
[1]: https://clickhouse-test-reports.s3.yandex.net/19583/9f8ab99dd12a6f60a20f5f84ab2f5d53874c6ae7/fuzzer_asan/report.htmlfail1
|
2021-01-26 14:27:58 +03:00 |
|