Azat Khuzhin
97851bde08
Fix Distributed over Distributed for WithMergeableStateAfterAggregation* stages
...
In case if one Distributed has multiple shards, and underlying
Distributed has only one, there can be the case when the query will be
tried to process from Complete to WithMergeableStateAfterAggregation,
which is obviously wrong.
2021-08-03 10:10:08 +03:00
Azat Khuzhin
ff12f5102a
Avoid running LIMIT BY/DISTINCT step on the initiator for optimize_distributed_group_by_sharding_key
...
Before the following queries was running LimitBy/Distinct step on the
initator:
select distinct sharding_key from dist order by k
While this can be omitted.
2021-08-02 21:04:30 +03:00
Azat Khuzhin
c830964240
Cover distributed_push_down_limit for queries w/o sharding expr
2021-08-02 21:04:30 +03:00
Azat Khuzhin
2fb95d9ee0
Rework SELECT from Distributed query stages optimization
...
Before this patch it wasn't possible to optimize simple SELECT * FROM
dist ORDER BY (w/o GROUP BY and DISTINCT) to more optimal stage
(QueryProcessingStage::WithMergeableStateAfterAggregationAndLimit),
since that code was under
allow_nondeterministic_optimize_skip_unused_shards, rework it and make
it possible.
Also now distributed_push_down_limit is respected for
optimize_distributed_group_by_sharding_key.
Next step will be to enable distributed_push_down_limit by default.
v2: fix detection of aggregates
2021-08-02 21:04:29 +03:00
Azat Khuzhin
bb6d030fb8
Optimize distributed SELECT w/o GROUP BY
2021-08-02 21:04:29 +03:00
Nikolai Kochetov
d63a5e1c96
Merge pull request #26675 from Algunenano/kill_better
...
Handle KILL requests while running pipeline executors
2021-08-02 17:37:54 +03:00
Maksim Kita
b7101baac9
Merge pull request #27032 from kitaisreal/cache-dictionary-configuration-parse-fix
...
Cache dictionaries configuration parse fix
2021-08-02 15:15:31 +03:00
Nikolai Kochetov
6951e8147d
Merge pull request #27020 from amosbird/shardlevelconstness
...
Shard-level const column
2021-08-02 13:45:20 +03:00
Maksim Kita
1f1795a305
Merge pull request #26978 from Algunenano/improve_executable_dictionary
...
01674_executable_dictionary_implicit_key: executable_dictionary: Use printf
2021-08-02 12:54:08 +03:00
Amos Bird
6d3356ac43
Remove useless WithContext
2021-08-02 17:37:41 +08:00
Maksim Kita
f353772e0c
Merge pull request #27072 from tobiaslins/patch-1
...
Add Splitbee to adopters list
2021-08-02 12:27:53 +03:00
Vitaly Baranov
7525f679ba
Merge pull request #27065 from vitlibar/fix-sync-in-encrypted_disk
...
Fix synchronization while updating from the config of an encrypted disk.
2021-08-02 12:13:24 +03:00
Maksim Kita
44fa4b2552
Fixed build
2021-08-02 12:12:10 +03:00
Tobias Lins
f29aa2ec3e
Add Splitbee
2021-08-02 10:12:36 +02:00
alesapin
181f93c60a
Merge pull request #24997 from evillique/nlp
...
NLP functions
2021-08-02 10:50:40 +03:00
Vitaly Baranov
a05184d83a
Fix synchronization while updating from the config of an encrypted disk.
2021-08-01 22:55:36 +03:00
alexey-milovidov
d9f55a3f31
Merge pull request #27040 from vzakaznikov/reenable_testflows_rbac
...
Moving to TestFlows 1.7.20 that has native support for parallel tests.
2021-08-01 10:57:09 +03:00
Amos Bird
b76a854f5a
backward compatible
2021-08-01 09:06:16 +08:00
alexey-milovidov
c0607a7e95
Merge pull request #27048 from ClickHouse/fix-idiotic-markup-website
...
Fix awful bug on website
2021-08-01 01:19:53 +03:00
Alexey Milovidov
3f5c81d00b
Cut some unknown garbage from bootstrap.css #27047
2021-08-01 00:04:35 +03:00
alexey-milovidov
8c9c4efd62
Merge pull request #27037 from ClickHouse/fix-test-01852
...
Make test 01852_cast_operator independent of timezone
2021-07-31 23:20:51 +03:00
Vitaliy Zakaznikov
bd1e2eda47
Moving to TestFlows 1.7.20 that has native support for parallel tests.
2021-07-31 15:50:27 -04:00
Alexey Milovidov
7fa24539b8
Make test 01852_cast_operator independent of timezone
2021-07-31 21:24:23 +03:00
alexey-milovidov
701e2ffd79
Merge pull request #27002 from azat/mutation-stuck
...
Fix possible mutation stuck due to race with DROP_RANGE
2021-07-31 21:17:46 +03:00
Amos Bird
c38403998e
Fix flaky
2021-07-31 23:00:10 +08:00
Amos Bird
c03b20d1a1
Fix
2021-07-31 17:02:33 +08:00
Amos Bird
479d4fa991
Add shardNum() and shardCount() functions
2021-07-31 15:45:39 +08:00
Amos Bird
cd302eacc1
Fix projection match
2021-07-31 15:44:16 +08:00
Vitaly Baranov
99929981ab
Merge pull request #25687 from MaxWk/profile-default-database
...
add setting profile_default_database
2021-07-31 08:37:02 +03:00
alexey-milovidov
71d20659c9
Merge pull request #27007 from ClickHouse/tavplubix-patch-2-1
...
Set insert_quorum_timeout to 1 minute for tests.
2021-07-31 04:55:00 +03:00
alexey-milovidov
d2b7e23899
Merge pull request #26961 from Enmk/fix/extractAllGroupsHorizontal_max_matches_per_row
...
Updated extractAllGroupsHorizontal - flexible limit on number of matches
2021-07-31 04:54:24 +03:00
alexey-milovidov
c74f5feaaf
Merge pull request #27028 from Algunenano/flaky_01006
...
Improve 01006_simpod_empty_part_single_column_write
2021-07-31 04:53:39 +03:00
alexey-milovidov
7e5f25ea92
Merge pull request #27026 from excitoon-favorites/runner
...
Improved `runner` to use `pytest` keyword expressions
2021-07-31 00:09:07 +03:00
alexey-milovidov
b27c110e2e
Merge pull request #26424 from qoega/protobuf-3.17.3
...
Try update protobuf to 3.17.3
2021-07-31 00:06:57 +03:00
alesapin
c321e750ad
Fix style
2021-07-30 21:00:25 +03:00
mergify[bot]
1d4e2564bc
Merge branch 'master' into improve_executable_dictionary
2021-07-30 16:45:39 +00:00
alexey-milovidov
f17b5debfb
Merge pull request #27023 from Algunenano/flaky_drop_create_merge
...
Attempt to fix flaky 00705_drop_create_merge_tree
2021-07-30 19:45:22 +03:00
Alexey Boykov
0b5e3ce195
Merge pull request #26979 from atereh/terehova-DOCSUP-10514-setting-global-in-join
...
DOCSUP-10514: documented new setting prefer_global
2021-07-30 19:26:31 +03:00
Alina Terekhova
2d33f7611d
ru version colon
...
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-30 17:42:25 +02:00
Alina Terekhova
98f8ffc4c9
en version colon
...
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-30 17:42:11 +02:00
alesapin
f02b091aa7
Ignore test in fast test
2021-07-30 18:27:02 +03:00
alesapin
02176fb4c7
Add experimental flag
2021-07-30 18:25:51 +03:00
Maksim Kita
2f35d75cbc
Cache dictionaries configuration parse fix
2021-07-30 17:13:11 +03:00
mergify[bot]
534b117ee1
Merge branch 'master' into protobuf-3.17.3
2021-07-30 14:11:32 +00:00
alexey-milovidov
c451caac13
Merge pull request #27009 from ClickHouse/help-with-26424
...
Help with #26424
2021-07-30 17:09:03 +03:00
Raúl Marín
1f3c8387a3
01006_simpod_empty_part_single_column_write: Use sync mutation instead of waiting
2021-07-30 15:53:33 +02:00
alesapin
e20e88ece3
Relax fast test
2021-07-30 16:51:15 +03:00
alesapin
6d28892fbd
Followup fix
2021-07-30 16:50:26 +03:00
alesapin
acc4e9e79d
Merge remote-tracking branch 'evillique/nlp' into evillique-nlp
2021-07-30 16:46:58 +03:00
Raúl Marín
be126cbbc5
Improve wait_for_mutation check
...
Fast return if there isn't any mutation (it's likely it has finished already)
2021-07-30 15:36:51 +02:00