Commit Graph

69122 Commits

Author SHA1 Message Date
Azat Khuzhin
3f0dd40c69 Avoid hanging clickhouse-benchmark if connection fails (i.e. on EMFILE) 2021-07-22 10:08:49 +03:00
ryzuo
94d4fb9dfc Cleanup the incomplete fix of nullability return value of lagInFrame/leadInFrame 2021-07-22 10:37:29 +08:00
ryzuo
df9ec5655c Add missing test back in 01591_window_function 2021-07-22 10:30:10 +08:00
ryzuo
fd0c016423 Make tests of nth_value pass 2021-07-22 10:22:24 +08:00
ryzuo
4eb053a303 Implementaion of window function nth_value.
1. Implemented the window function nth_value
2. Make the return type of lag/lead, and nth_value functions to be
ColumnNullable, thus the returned value can be null if it is out
of frame.
2021-07-22 10:19:19 +08:00
Alexey Milovidov
ba06e8ccd0 Fix flaky test mutation_stuck_after_replace_partition 2021-07-22 03:39:23 +03:00
Alexey Milovidov
49dac9a46f Move code to .cpp 2021-07-22 03:38:28 +03:00
Alexey Milovidov
ed341b64e4 Disable parallel formatting 2021-07-22 03:24:35 +03:00
alexey-milovidov
2796aa333f
Merge pull request #26618 from ClickHouse/fix-flaky-test-22
Fix flaky test 01509_check_many_parallel_quorum_inserts
2021-07-22 02:58:07 +03:00
alexey-milovidov
f9581893d8
Merge pull request #26658 from azat/skip_unavailable_shards-excessive-attempts
Fix excessive connect attempts with skip_unavailable_shards
2021-07-22 02:12:32 +03:00
Alexey
838261fe9f ru minor update 2021-07-21 20:14:31 +00:00
Alexey
182bffbf82 Translated to russian.
Some fixes and updates.
2021-07-21 19:59:47 +00:00
Denny Crane
1873600642
Update clickhouse-keeper.md
Doc. clickhouse-keeper added default values for params
2021-07-21 16:37:38 -03:00
Ilya Yatsishin
b4c3796dc6
Merge pull request #26679 from den-crane/patch-20 2021-07-21 22:31:44 +03:00
Denny Crane
1eb71713de
copypaste error 2021-07-21 16:26:45 -03:00
Alexey
057298840b Rewritten description 2021-07-21 19:20:52 +00:00
Anton Popov
a36c387e4e fix iterating over list 2021-07-21 21:47:20 +03:00
Alexey Boykov
b285b1820e
Merge pull request #26616 from den-crane/patch-19
Doc. Documentation for compression level
2021-07-21 20:57:40 +03:00
Vladimir
576b407804
Support conditions in JOIN ON section (#24420)
* Try to enforce table identification in CollectJoinOnKeysMatcher

* Support filtering conditions in JOIN ON for HashJoin

* Correct handle non equi join

* Update test 00878_join_unexpected_results

* Join on filters calculated as one row before join

* Do not lookup key in hash join if condition for row is not hold

* better

* Support filtering conditions in JOIN ON for MergeJoin

* Support Nullable mask in JOIN ON section

* Fix style in Interpreters/TableJoin.cpp

* Change return type of getColumnAsMask in join_common to ColumnPtr

* Handle Nullable(Nothing) type in JOIN ON section, add test cases

* Fix type cast JoinCommon::getColumnAsMask

* Check type if conditions in JOIN ON section, support functions

* Update tests with JOIN ON

* Style changes, add comments for conditions in JOIN ON section

* Add test cases for join on condtions

* JOIN ON key1 = key2 AND (cond1 OR cond2)

* Remove CollectJoinOnKeysVisitor has_join_keys

* Add test cases for join on nullable/lc conditions

* Fix style

* Change error code 48 to 403 in join on tests

* Fix whitespace
2021-07-21 20:03:33 +03:00
Denny Crane
fa69ad56ad
Update settings.md 2021-07-21 13:23:37 -03:00
Denny Crane
6b3c788214
Update settings.md 2021-07-21 13:21:26 -03:00
Nikolai Kochetov
f38de35b14 Rename some constants. 2021-07-21 19:13:17 +03:00
Ivan Blinkov
e87580c89c
Update README.md 2021-07-21 18:44:20 +03:00
vdimir
1d0ceff2dc
Fix mysql_kill_sync_thread_restore_test 2021-07-21 18:17:45 +03:00
Caspian
eab4cb3cdc use new syntax, update docs 2021-07-21 23:08:38 +08:00
romanzhukov
781513e8c2 DOCSUP-11551: Add ru contrib info. 2021-07-21 18:04:41 +03:00
Roman Bug
b3abae993a
Update docs/ru/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-sources.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-21 17:33:16 +03:00
Roman Bug
bce2ae8868
Update docs/ru/sql-reference/functions/ext-dict-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-21 17:33:04 +03:00
Roman Bug
3f76a6473c
Update docs/ru/sql-reference/functions/ext-dict-functions.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-21 17:32:59 +03:00
Maksim Kita
49983883cc Added tests 2021-07-21 16:41:45 +03:00
Roman Bug
ae8908419e
Update docs/en/operations/settings/settings.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-21 16:17:11 +03:00
Alexander Kuzmenkov
7f0fec6d5d materialize all columns in window transform 2021-07-21 16:06:50 +03:00
Maksim Kita
f32a2806ee
Merge pull request #26664 from su-houzhen/patch-1
Update index.md
2021-07-21 15:44:42 +03:00
alexey-milovidov
4b51ec3a83
Merge pull request #26619 from ClickHouse/fix-flaky-test-23
Fix one possible cause of tests flakiness
2021-07-21 15:24:30 +03:00
alexey-milovidov
66d3b534a6
Merge pull request #26620 from ClickHouse/more-cpp
Remove some code, more C++ way
2021-07-21 15:23:19 +03:00
Nikolai Kochetov
65d3e713d6 Fix another one test. 2021-07-21 15:16:13 +03:00
Amos Bird
205edec80d
Use shared_ptr for connections 2021-07-21 19:56:32 +08:00
Alexey Boykov
925e2a6a22
Merge branch 'ClickHouse:master' into master 2021-07-21 14:54:17 +03:00
Alexander Kuzmenkov
94008b3199 remove print 2021-07-21 14:52:10 +03:00
Alexander Kuzmenkov
ff084e662c add more debug to window transform
The idea of working with input chunks with different structures doesn't
seem sane. Assert that they are totally equal.
2021-07-21 14:50:22 +03:00
Alexey Boykov
4ec811d1fd Revert "Revert "Merge branch 'master' into master""
This reverts commit 28279e13f2.
2021-07-21 14:16:05 +03:00
Alexey Boykov
28279e13f2 Revert "Merge branch 'master' into master"
This reverts commit 0543736da1, reversing
changes made to e8e34ba786.
2021-07-21 14:11:13 +03:00
Alexander Kuzmenkov
6ae4031723
Merge pull request #26521 from ClickHouse/aku/lag-in-frame-nullable
fix lagInFrame for nullable types
2021-07-21 14:10:16 +03:00
Nikolai Kochetov
2c90928bc4 Fix tests. 2021-07-21 12:52:28 +03:00
Alexander Kuzmenkov
dadf1e192e fix whitespace 2021-07-21 12:38:56 +03:00
su-houzhen
412fb28d4f
Update index.md 2021-07-21 17:26:55 +08:00
Maksim Kita
63f67f7997 Introduced HereDoc token 2021-07-21 11:59:05 +03:00
Roman Bug
a133afaac3
Update docs/en/operations/settings/settings.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-07-21 10:49:33 +03:00
Roman Bug
a0ce414b92
Update docs/ru/operations/settings/settings.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-07-21 10:49:29 +03:00
Azat Khuzhin
7b7e8acf4f Fix excessive connect attempts with skip_unavailable_shards
Before this patch the query was sent from
RemoteBlockInputStream::readPrefix() and also from
RemoteBlockInputStream::read().

And since in case of skip_unavailable_shards=1 connection errors are
ignored, it tries to do x2 connect attempts.

Fix this, but removing RemoteBlockInputStream::readPrefix().

Fixes: #26511
2021-07-21 10:06:54 +03:00