Commit Graph

52116 Commits

Author SHA1 Message Date
Azat Khuzhin
9689b293ca Fix "Unexpected packet Data received from client" error
Fix query cancelation in case of Distributed queries with LIMIT (when
the initator does not required to read all the data), since this cannot
be done until the query was sent (from the Query packet up to the empty
data Block), otherwise you will get:

    2020.11.21 21:47:23.297161 [ 184 ] {} <Error> TCPHandler: Code: 101, e.displayText() = DB::Exception: Unexpected packet Data received from client, Stack trace:

    0. /build/obj-x86_64-linux-gnu/../contrib/libcxx/include/exception:129: Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x244f5bc9 in /usr/bin/clickhouse
    1. /build/obj-x86_64-linux-gnu/../src/Common/Exception.cpp:40: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0xa14a421 in /usr/bin/clickhouse
    2. /build/obj-x86_64-linux-gnu/../src/Common/NetException.h:0: DB::TCPHandler::receiveUnexpectedData() @ 0x1e032a74 in /usr/bin/clickhouse
    3. /build/obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:824: DB::TCPHandler::receivePacket() @ 0x1e024685 in /usr/bin/clickhouse
    4. /build/obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:178: DB::TCPHandler::runImpl() @ 0x1e01736b in /usr/bin/clickhouse
    5. /build/obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x1e035c1b in /usr/bin/clickhouse
    6. /build/obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x243559cf in /usr/bin/clickhouse
    7. /build/obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:0: Poco::Net::TCPServerDispatcher::run() @ 0x24356521 in /usr/bin/clickhouse
    8. /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x24609175 in /usr/bin/clickhouse
    9. /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:0: Poco::ThreadImpl::runnableEntry(void*) @ 0x24603cb7 in /usr/bin/clickhouse
    10. start_thread @ 0x9669 in /usr/lib/x86_64-linux-gnu/libpthread-2.30.so
    11. __clone @ 0x1222b3 in /usr/lib/x86_64-linux-gnu/libc-2.30.so
2020-11-22 12:42:15 +03:00
Azat Khuzhin
83f27c8d4f Fix libunwind build for cmake 3.19+ 2020-11-22 12:19:17 +03:00
alexey-milovidov
1cdb447b77
Update date-time-functions.md 2020-11-22 07:38:31 +03:00
olgarev
276ba42234
DOCSUP-2864: Documented WITH ROLLUP and WITH CUBE sections of the SELECT query (#17094)
* Docs en,ru

* Explanation added

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
2020-11-21 23:06:29 +03:00
alexey-milovidov
870a56b962
Merge pull request #17255 from azat/perf-tests-settings-cleanup
Cleanup settings handling in perf tests
2020-11-21 22:59:44 +03:00
alexey-milovidov
d79974d73f
Merge pull request #17256 from matwey/fix/missed_stdexcept
Add missed <stdexcept>
2020-11-21 22:55:15 +03:00
alexey-milovidov
1663b13215
Merge pull request #17257 from ucasFL/fix
fix toUInt256 stack overflow
2020-11-21 22:54:06 +03:00
alexey-milovidov
7c93452044
Merge pull request #17259 from den-crane/patch-7
Doc. removed obsolete info about groupby / sum
2020-11-21 22:47:43 +03:00
AnaUvarova
33217c5b49
DOCSUP-1954 initialize aggregation description (#16793)
* Draft

* Draft+

* host fixes

* host fixes

* ++

* ++

* +++

* Edits, part 1: + parametres and clarification

* Edits

* Fix host

* Update docs/en/sql-reference/aggregate-functions/reference/initializeAggregation.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* nano-fixes and russian translation

* Final edits

Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-11-21 22:47:34 +03:00
Denny Crane
dd7b9f2387
Update index.md
removed obsolete info about sum
2020-11-21 15:05:34 -04:00
Denny Crane
935a747b90
Update index.md
removed obsolete info about sum
2020-11-21 15:05:11 -04:00
Denny Crane
badb7b1ba5
Update group-by.md
removed obsolete info about groupby
2020-11-21 14:58:58 -04:00
Denny Crane
20937c71a9
Update group-by.md
removed obsolete info about groupby
2020-11-21 14:57:30 -04:00
vdimir
a277a5bb16
Rename TrieDictionary -> IPAddressDictionary 2020-11-21 21:38:10 +03:00
vdimir
e2fac19686
Remove libbtrie 2020-11-21 21:31:15 +03:00
Nikolai Kochetov
83e5b3c855
Merge pull request #17133 from ClickHouse/order-inputs-in-action-dag
Remove Converting step and transform. Order inputs for ActionsDAG.
2020-11-21 20:40:09 +03:00
vdimir
7adbc5a0c6
Fix ip dict build 2020-11-21 20:39:16 +03:00
vdimir
77ffd25cc0
Fixes for IP dictionary
More meaningful parse errors

Code style fixes, more comments

Fix bytes_allocated calculation
2020-11-21 17:56:58 +03:00
fenglv
268b15f221 fix toUInt256 stack overflow 2020-11-21 12:59:40 +00:00
Azat Khuzhin
d676e2f5c5 Pass settings for perf tests via protocol over SET query
Thus they will be applied on reconnects, since clickhouse-driver may
implicitly do it if the connection has been failed.
2020-11-21 14:02:33 +03:00
Azat Khuzhin
3ddb0ac53e Configure logging for perf test runner 2020-11-21 14:02:33 +03:00
Azat Khuzhin
f6d16ee43e Force clickhouse-driver >= 1.1.5 for settings-as-strings support for perf-tests image 2020-11-21 14:02:33 +03:00
Azat Khuzhin
8931d3eb6f Do not use SET via <full_query> in perf tests
Since if the connection will be closed (by some reason), then the
setting will not be applied after transparent reconnect (since only
native clickhouse-client can do this, since it parses the query, but
perf tests uses python driver).

Just use inplace SETTINGS clause or <settings>.
2020-11-21 14:02:21 +03:00
Nikolai Kochetov
cf678b6092 Merge branch 'master' into order-inputs-in-action-dag 2020-11-21 13:54:50 +03:00
Azat Khuzhin
97c34a0fc9 Pass logger for the RemoteQueryExecutor
So now you will get additional message:

    2020.11.21 13:37:15.429767 [ 380840 ] {47e1540d-f4cd-4f2f-9383-f1216e8328dc} <Trace> StorageDistributed (dist_01247): (127.0.0.2:9000) Cancelling query
2020-11-21 13:37:32 +03:00
Azat Khuzhin
ee4267c1ba Rename 01247_optimize_distributed_group_by_sharding_key to distingiush it
Otherwise flaky tests will run then both, not a problem, but this is
just to trigger flaky check, since there is some tricky issue [1]:

    2020-11-20 00:35:51 01247_optimize_distributed_group_by_sharding_key:                       [ FAIL ] 0.67 sec. - return code 101
    2020-11-20 00:35:51 Received exception from server (version 20.12.1):
    2020-11-20 00:35:51 Code: 101. DB::Exception: Received from localhost:9000. DB::Exception: Received from 127.0.0.2:9000. DB::Exception: Unexpected packet Data received from client.

  [1]: https://clickhouse-test-reports.s3.yandex.net/16996/8d71564056925df1415880f382aaa169cbdf37b0/functional_stateless_tests_flaky_check_(address)/test_run.txt.out.log
2020-11-21 13:32:17 +03:00
Matwey V. Kornilov
9d509cfc56 Add missed <stdexcept>
std::logic_error is used at line 294, so the appropriate header is required.
2020-11-21 13:26:38 +03:00
alexey-milovidov
af5a74a0d5
Merge pull request #17234 from vickyi/patch-1
wrong translation
2020-11-21 10:49:43 +03:00
alexey-milovidov
301ffc97e1
Merge pull request #17218 from qianmoQ/patch-1
Fixed a problem with the translation of the document
2020-11-21 10:49:05 +03:00
alesapin
cd825e4fd9
Merge pull request #17233 from ClickHouse/better_coverage_images
Improvements in coverage images
2020-11-20 23:49:10 +03:00
Nikolai Kochetov
bac1def5f9
Merge pull request #17134 from abyss7/tcp-port
Implement tcpPort() function for tests
2020-11-20 20:32:55 +03:00
Nikolai Kochetov
382e6d0855 Review fix. 2020-11-20 19:52:50 +03:00
robot-clickhouse
5c5d2ac281 Update version_date.tsv after release 20.8.7.15 2020-11-20 19:23:48 +03:00
V
2cdb7bc3f6
wrong translation
fix wrong translation
2020-11-20 23:58:25 +08:00
robot-clickhouse
6d1b84b06b Update version_date.tsv after release 20.9.6.14 2020-11-20 18:52:09 +03:00
robot-clickhouse
2106163717 Update version_date.tsv after release 20.10.5.10 2020-11-20 18:35:00 +03:00
robot-clickhouse
3dcc2eeb01 Update version_date.tsv after release 20.11.4.13 2020-11-20 18:20:26 +03:00
Nicolae Vartolomei
7c8bc1c04e Use JSON metadata in WAL 2020-11-20 13:49:17 +00:00
Nicolae Vartolomei
040aba9f85 Add uuid.txt to checksums for parts stored on disk
We are breaking backwards compatibility anyway (but agted by a setting)
2020-11-20 13:49:17 +00:00
Nicolae Vartolomei
94293ca3ce Assign UUIDs to parts only when configured to do so
Avoid breaking backwards compatibility by default for now.
2020-11-20 13:49:17 +00:00
alesapin
2ac9378019
Merge pull request #17203 from ClickHouse/more_compatible_testkeeper
More compatible watches in TestKeeper
2020-11-20 14:48:03 +03:00
Pavel Kovalenko
9cbb251be6 Store read-only flag into metadata file for DiskS3. 2020-11-20 14:08:43 +03:00
tavplubix
3e335c1e95
Merge pull request #17091 from zhang2014/fix/binlog_checksum
Fix MaterializeMySQL SYNC failure when modify binlog_checksum
2020-11-20 13:25:14 +03:00
Amos Bird
1d9d586e20
Make global_context consistent. 2020-11-20 18:23:14 +08:00
Alexander Kuzmenkov
b05ac888bd Merge remote-tracking branch 'origin/master' into HEAD 2020-11-20 12:50:08 +03:00
Alexander Kuzmenkov
bde805cb3e
Merge pull request #17175 from ClickHouse/aku/named-tuple
Allow formatting named tuples as JSON objects
2020-11-20 12:48:24 +03:00
Nikolai Kochetov
31886fdca6
Merge pull request #16811 from amosbird/pf2
Fix verbatim partition pruner.
2020-11-20 12:07:33 +03:00
alesapin
78860bf2bd Improvements in coverage images 2020-11-20 11:48:06 +03:00
Anton Ivashkin
a7d4f4be65 Add 's3_max_redirects' test 2020-11-20 11:18:44 +03:00
qianmoQ
95a203c8ca
Fixed a problem with the translation of the document
Fixed a problem with the translation of the document
2020-11-20 15:21:36 +08:00