Commit Graph

68958 Commits

Author SHA1 Message Date
Raúl Marín
db0cdd696f Dependent views: Report progress 2021-07-27 16:29:34 +02:00
Raúl Marín
0d9bf0a08e Avoid havin multiple profilers in the same thread 2021-07-27 16:29:34 +02:00
Raúl Marín
104bd9cde0 Views: Improve scope handling 2021-07-27 16:29:34 +02:00
Raúl Marín
0d7d8320f9 Avoid using :: to cast
There is an issue with the ANTRL parser, reported
https://github.com/ClickHouse/ClickHouse/issues/25855
2021-07-27 16:29:34 +02:00
Raúl Marín
97823600e3 Rename tests after rebase 2021-07-27 16:29:34 +02:00
Raúl Marín
844681a7fd Update docs to match changes 2021-07-27 16:29:34 +02:00
Raúl Marín
0231583ea2 PushingToViewsBlockOutputStream: Use setupState instead 2021-07-27 16:29:34 +02:00
Raúl Marín
0a5c9868b0 Changes necessary master merge 2021-07-27 16:29:34 +02:00
Raúl Marín
43a96c67a5 Add test to check behaviour on exceptions 2021-07-27 16:29:34 +02:00
Raúl Marín
eebb0c6c72 Stop testing static uuids
Complicates things in CI and breaks parallel tests
2021-07-27 16:29:34 +02:00
Raúl Marín
e4b65da6e4 PushingToViewsBlockOutputStream: Detatch ThreadStatus' 2021-07-27 16:29:34 +02:00
Raúl Marín
75d18bc79b CI linters and compiler errors 2021-07-27 16:29:34 +02:00
Raúl Marín
22d1ed472d Fix unrelated shellcheck warning 2021-07-27 16:29:34 +02:00
Raúl Marín
06b56b6dc7 MV min_insert_block_size_rows: Only test for exceptions
With the changes in the previous commit, we try to finish any materialized
view that was started before an exception was thrown
2021-07-27 16:29:33 +02:00
Raúl Marín
69577a782f Views: Once started, finish all concurrent views before throwing
Since sequential processing executes things in phases too, try to finish
all (non errored out) views before throwing any exception
2021-07-27 16:29:33 +02:00
Raúl Marín
ce501bcf25 MatViews: Attach memory trackers to current query 2021-07-27 16:29:33 +02:00
Raúl Marín
297b939c66 Fix test #01600 2021-07-27 16:29:33 +02:00
Raúl Marín
70b7bb4eaa Refresh table acecss information before the final query_log
Table access should show the tables used by joins in dependent views
2021-07-27 16:29:33 +02:00
Raúl Marín
f0125262b7 Add views and it's tables to system.query_log 2021-07-27 16:29:33 +02:00
Raúl Marín
14e8029e01 Initial basic tests and change name to not include uuid 2021-07-27 16:29:33 +02:00
Raúl Marín
97215faf7b Remove unnecessary include 2021-07-27 16:29:33 +02:00
Raúl Marín
e17af6113b Fix live views 2021-07-27 16:29:33 +02:00
Raúl Marín
fc23e212c2 ThreadStatus: Don't change current thread if it's not this 2021-07-27 16:29:33 +02:00
Raúl Marín
eb994d8f04 Fix a couple of bugs
- Don't use threads if there is only one dependent view and parallel_view
- Reset the current_thread when destroying views ThreadStatus
2021-07-27 16:29:33 +02:00
Raúl Marín
7c1fcc94b0 View log: Make sure to only profile events during view execution 2021-07-27 16:29:33 +02:00
Raúl Marín
891e9ba3c8 rbac: Check access to query_views_log too 2021-07-27 16:29:33 +02:00
Raúl Marín
ab05fc12e2 Docs and settings 2021-07-27 16:29:33 +02:00
Raúl Marín
e0ee7839f7 Only use threads when necessary and log written status 2021-07-27 16:29:31 +02:00
Raúl Marín
6b9ec2a62e WIP 2021-07-27 16:28:28 +02:00
Raúl Marín
efe1938437 WIP: Slow improvements 2021-07-27 16:26:29 +02:00
Raúl Marín
ea5c02a605 WIP 2021-07-27 16:26:27 +02:00
Raúl Marín
bc1ccd2d62 Flush materialization log on FLUSH_LOGS 2021-07-27 16:23:46 +02:00
Raúl Marín
f34cb886cc Add materialization log accessor to Context 2021-07-27 16:23:46 +02:00
Raúl Marín
c5b14f5075 Add materialization log to SystemLog 2021-07-27 16:23:46 +02:00
Raúl Marín
07c71c226e Add QueryMaterializationLog class 2021-07-27 16:23:46 +02:00
tavplubix
168edaed73
Merge pull request #26808 from amosbird/safe2
Make sure table is readonly when restarting fails.
2021-07-27 17:21:08 +03:00
Nikolai Kochetov
97bc754dd8
Merge pull request #26758 from ClickHouse/output-streams-to-processors
Remove some output streams
2021-07-27 17:19:26 +03:00
Kseniia Sumarokova
f2e599d8d1
Merge pull request #26826 from kssenii/rabbit-fix-tests
Try fix rabbitmq tests
2021-07-27 17:07:37 +03:00
Alexey Boykov
4d5721edf5
Merge pull request #26681 from lehasm/alexey-sm-DOCSUP-11657-document-check_sample_column_is_correct-setting
DOCSUP-11657: Document the check_sample_column_is_correct setting
2021-07-27 16:53:38 +03:00
alexey-milovidov
d7b2404119
Merge pull request #15408 from ClickHouse/random_timezone_for_stateless_tests
Use random timezone in stateless and stateful tests
2021-07-27 16:18:14 +03:00
Nikita Mikhaylov
7bf0fc2ac1
Merge pull request #26703 from Algunenano/threadpool_safety
ParallelFormattingOutputFormat: Use mutex to handle the join to the collector_thread
2021-07-27 16:02:07 +03:00
Vitaly Baranov
8e98cf7c4d
Merge pull request #26818 from vitlibar/fix-killing-unstopped-containers-in-integration-tests
Fix killing unstopped containers in integration tests.
2021-07-27 15:38:36 +03:00
Alexander Kuzmenkov
ece7d000dd
Merge pull request #26736 from Algunenano/ch_local_remote_localhost
CH local: Treat localhost:port as a remote database
2021-07-27 15:30:54 +03:00
Alexander Kuzmenkov
7e737d9568
Merge pull request #26334 from ryzuo/ryzuo
Implementation of window function nth_value
2021-07-27 15:02:29 +03:00
tavplubix
d071fbc2f5
Merge pull request #26830 from ClickHouse/tavplubix-patch-3
Try fix timeout in functional tests with pytest
2021-07-27 14:43:45 +03:00
lehasm
3bf9234ffb
Update docs/ru/operations/settings/merge-tree-settings.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-27 13:05:50 +03:00
lehasm
be8c8b9372
Update docs/en/operations/settings/merge-tree-settings.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-07-27 13:05:07 +03:00
tavplubix
4b462ddc81
Merge pull request #26817 from ClickHouse/tavplubix-patch-2
Check stdout for messages to retry in clickhouse-test
2021-07-27 12:53:16 +03:00
tavplubix
41f1a1c4e7
Update query_test.py 2021-07-27 12:41:35 +03:00
Nikolai Kochetov
be121ded20
Update PushingToViewsBlockOutputStream.cpp 2021-07-27 12:25:07 +03:00