kssenii
c47f5ebcd9
Minor change
2023-08-23 11:46:14 +02:00
kssenii
325e2d3172
Merge remote-tracking branch 'upstream/master' into system-sync-cache
2023-08-23 11:44:19 +02:00
Victor Krasnov
258f9927b4
Merge branch 'master' into ADQM-987
2023-08-22 16:49:32 +03:00
Kruglov Pavel
c0bdd0e00b
Merge branch 'master' into cache-count
2023-08-22 14:42:22 +02:00
avogar
b4145aeddc
Cache number of rows in files for count in file/s3/url/hdfs/azure functions
2023-08-22 11:59:59 +00:00
Robert Schulze
8cbf626d0f
Cosmetics
2023-08-21 14:08:44 +00:00
Victor Krasnov
a7813260c0
Merge branch 'master' into ADQM-987
2023-08-21 14:45:13 +03:00
kssenii
247abe0a2a
Merge remote-tracking branch 'upstream/master' into system-sync-cache
2023-08-19 08:43:53 +04:00
Robert Schulze
3472a928d8
Cosmetics: Rename dropCache() to clearCaches()
...
"dropCache()" is a bad name, it sounds like that the cache can no longer
be used after the call. Not true, we only "clear" the cache.
2023-08-14 15:42:32 +00:00
Victor Krasnov
247cd63ca1
Merge branch 'master' into ADQM-987
...
# Conflicts:
# src/Interpreters/Context.cpp
# src/Interpreters/InterpreterSystemQuery.cpp
2023-08-14 10:33:56 +03:00
kssenii
8535e23f95
Merge remote-tracking branch 'upstream/master' into system-sync-cache
2023-08-13 21:10:42 +04:00
Alexey Milovidov
22d1ddeb71
Fix tidy
2023-08-11 14:45:12 +02:00
Alexey Milovidov
3b9d2c7080
Simplification
2023-08-11 03:06:07 +02:00
Victor Krasnov
9c34ef899e
Add backup_log table
2023-08-10 15:46:04 +03:00
kssenii
43ed765231
Fix
2023-08-08 18:43:01 +02:00
kssenii
2c485e78db
Merge remote-tracking branch 'upstream/master' into system-sync-cache
2023-08-08 16:27:21 +02:00
Alexander Tokmakov
7684e68008
Add system stop pulling replication log ( #52881 )
...
* add system stop pulling replication log
* add const
* fix another stupid test
* Update test.py
2023-08-03 13:34:43 +03:00
Kseniia Sumarokova
0ec11a2d79
Merge branch 'master' into system-sync-cache
2023-08-03 12:02:18 +02:00
kssenii
5d167b4f03
Merge remote-tracking branch 'upstream/master' into system-sync-cache
2023-07-31 12:44:11 +02:00
kssenii
6ae6268ad0
Revert "Merge pull request #51917 from ClickHouse/revert-system-drop-filesystem-cache-by-key"
...
This reverts commit 520195f7ef
, reversing
changes made to e36a638014
.
2023-07-30 13:39:54 +02:00
Nikolay Degterinsky
d89e2e6a27
Add SYSTEM STOP LISTEN query ( #51016 )
...
Co-authored-by: Nikita Mikhaylov <nikitamikhaylov@clickhouse.com>
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-07-26 19:58:41 +02:00
Anton Popov
347f442f84
Merge remote-tracking branch 'upstream/master' into HEAD
2023-07-24 10:55:31 +00:00
Alexey Milovidov
933a92e176
Merge branch 'master' into remove-useless-system-query
2023-07-08 01:45:19 +02:00
Alexey Milovidov
7cece62d26
Revert "Merge pull request #51547 from kssenii/more-flexible-drop-cache"
...
This reverts commit 2ce7bcaa3d
, reversing
changes made to e897207cd5
.
2023-07-07 04:07:19 +02:00
Alexey Milovidov
f0cc90a7fb
Revert "Merge pull request #51822 from kssenii/minor-changes"
...
This reverts commit 5ac85f4fa8
, reversing
changes made to 376c903da9
.
2023-07-07 04:07:03 +02:00
Alexey Milovidov
d59f68b600
Remove useless code
2023-07-06 04:55:46 +02:00
kssenii
e6422f8144
Delete comment, rename variable
2023-07-05 13:08:11 +02:00
kssenii
80dabd1346
Merge remote-tracking branch 'upstream/master' into system-sync-cache
2023-07-05 12:58:11 +02:00
Kseniia Sumarokova
31a87c6527
Update InterpreterSystemQuery.cpp
2023-07-01 13:16:51 +02:00
kssenii
c8ab68a5c3
Add test
2023-06-30 16:13:34 +02:00
kssenii
72d1834bbd
system sync filesystem cache
2023-06-29 18:13:54 +02:00
kssenii
1d78bafa82
Flexible drop cache
2023-06-28 18:44:47 +02:00
Anton Popov
69ec65ab33
Merge remote-tracking branch 'upstream/master' into HEAD
2023-05-16 10:30:47 +00:00
Han Fei
64b67b9a37
Merge branch 'master' into hanfei/fiu
2023-05-09 01:14:30 +02:00
Han Fei
82ce47ce56
address comments
2023-05-08 23:02:36 +02:00
wangxiaobo
f704c0dfec
Implement SYSTEM DROP REPLICA from auxillary ZooKeeper clusters ( #48932 )
...
* multiple zookeeper drop replica bug fix.
* add an integration test.
* format code.
* set stay_alive=True for test.
* style check bug fix.
* add check for is_active
* format code
* remove table_settings and has_metadata_out param.
2023-05-05 14:11:11 +03:00
Han Fei
4d18a4f8d3
Merge branch 'master' into hanfei/fiu
2023-05-01 17:51:41 +02:00
Han Fei
b701293d46
support named fault injection and add a simple test
2023-05-01 17:44:37 +02:00
Alexey Milovidov
6dcfdbfaf2
Merge branch 'master' into clusters_is_active_column
2023-04-28 16:16:25 +03:00
Anton Popov
125e5c50b8
allow to flush async insert queue
2023-04-25 21:30:03 +00:00
Alexander Tokmakov
332a736a59
Merge branch 'master' into clusters_is_active_column
2023-04-24 15:54:03 +02:00
kssenii
1322ad53b8
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-04-17 18:22:21 +02:00
kssenii
0517de58d1
Simplify FileCacheFactory
2023-04-15 16:15:20 +02:00
Robert Schulze
7a21d5888c
Remove -Wshadow suppression which leaked into global namespace
2023-04-13 08:46:40 +00:00
Alexander Tokmakov
9ec91acef3
add some columns to system.clusters
2023-04-07 18:26:23 +02:00
kssenii
a405d06e8a
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-04-05 18:46:52 +02:00
Alexander Tokmakov
48b23dd012
Fix race between DROP MatView and RESTART REPLICAS ( #47863 )
...
* fix race between drop mv and restart replicas
* unrelated: fix bad exception messages
* fix test
* fix
* fix
* fix
* fix
* fix test
* fix
* fix test
* Update 02437_drop_mv_restart_replicas.sh
* fix tests
2023-04-01 15:26:00 +03:00
Alexander Tokmakov
caf00b5968
Merge branch 'master' into sync_replica_lightweight
2023-03-31 14:52:55 +02:00
kssenii
e2cbccfbc4
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-03-30 17:33:46 +02:00
kssenii
4cf2862a0e
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-03-29 12:50:36 +02:00
Azat Khuzhin
f38a7aeabe
ThreadPool metrics introspection
...
There are lots of thread pools and simple local-vs-global is not enough
already, it is good to know which one in particular uses threads.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-03-29 10:46:59 +02:00
Alexander Tokmakov
b5fe1ada0b
more options for sync replica
2023-03-28 01:39:36 +02:00
Alexander Tokmakov
8e36f883d3
add 'strict' mode for sync replica, fix 00993
2023-03-16 16:04:42 +01:00
kssenii
dbbab26167
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-02-16 12:29:38 +01:00
alesapin
b94f9f8006
Merge branch 'master' into 45508_Update_strategy_for_system_sync_replica
2023-02-06 12:38:39 +01:00
Kseniia Sumarokova
80c96f7d3d
Merge branch 'master' into cache-better-locks
2023-02-04 22:31:59 +01:00
Antonio Andelic
d5117f2aa6
Define S3 client with bucket and endpoint resolution ( #45783 )
...
* Update aws
* Define S3 client with bucket and endpoint resolution
* Add defines for ErrorCodes
* Use S3Client everywhere
* Remove unused errorcode
* Add DROP S3 CLIENT CACHE query
* Add a comment
* Fix style
* Update aws
* Update reference files
* Add missing include
* Fix unit test
* Remove unneeded declarations
* Correctly use RetryStrategy
* Rename S3Client to Client
* Fix retry count
* fix clang-tidy warnings
2023-02-03 14:30:52 +01:00
Kseniia Sumarokova
24da7f2b54
Merge branch 'master' into cache-better-locks
2023-02-02 16:07:13 +01:00
Alexey Milovidov
62bfdb349a
Merge branch 'master' into fix-trash-query-kind
2023-02-02 04:26:49 +01:00
Alexey Milovidov
9b908a0be0
Fix trash around query kind, part 2
2023-02-01 03:31:31 +01:00
Alexey Milovidov
5c4db119fa
Fix trash around query kind, part 1
2023-02-01 03:11:54 +01:00
Robert Schulze
325c6bdf3d
Renaming: "Query Result Cache" --> "Query Cache"
...
Reasons:
- The cache will at some point store intermediate results as opposed to
only query results. We should change the terminology now without
having to worry about backward compat.
- Equivalent caches in MySQL (1) and Starrocks (2) are called "query
cache".
- The new name is ca. 13.8% more catchy.
(1) https://dev.mysql.com/doc/refman/5.6/en/query-cache.html
(2) https://docs.starrocks.io/en-us/2.5/using_starrocks/query_cache
2023-01-31 09:54:34 +00:00
SmitaRKulkarni
809354dc30
Merge branch 'master' into 45508_Update_strategy_for_system_sync_replica
2023-01-29 11:28:21 +01:00
Alexey Milovidov
f4eb19bd69
Update InterpreterSystemQuery.cpp
2023-01-29 04:43:24 +03:00
freedomDR
379850b6c4
add system sync file cache
2023-01-28 04:27:10 +00:00
SmitaRKulkarni
b22fd40d92
Merge branch 'master' into 45508_Update_strategy_for_system_sync_replica
2023-01-27 15:00:47 +01:00
kssenii
dc3cff9f06
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-01-27 12:39:23 +01:00
Smita Kulkarni
8c885ffeae
Updated checking of SYSTEM SYNC REPLICA
...
Implementation:
* Updated to wait for current last entry to be processed (after pulling shared log) instead of queue size becoming 0.
* Updated Subscriber to notify both queue size and removed log_entry_id.
2023-01-26 11:40:09 +01:00
Alexander Tokmakov
bb4c8e169f
check number of parameters in format string
2023-01-23 23:16:16 +01:00
Alexander Tokmakov
3f6594f4c6
forbid old ctor of Exception
2023-01-23 22:18:05 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
Robert Schulze
4f90824347
Merge remote-tracking branch 'origin/master' into query-result-cache
2023-01-17 22:49:53 +00:00
kssenii
4556b516d7
Merge remote-tracking branch 'upstream/master' into cache-better-locks
2023-01-17 14:06:04 +01:00
Anton Popov
ed00399eb6
Merge remote-tracking branch 'upstream/master' into HEAD
2023-01-05 14:12:02 +00:00
kssenii
9014c818ae
Merge remote-tracking branch 'upstream/master' into try-perf
2023-01-04 20:56:32 +01:00
kssenii
25f8e8467a
Rewrite locking in cache - intermediate state
2023-01-04 18:56:45 +01:00
Robert Schulze
e9e04166d9
Merge remote-tracking branch 'origin/master' into query-result-cache
2023-01-02 08:20:27 +00:00
alesapin
4948a8c17b
Remove disk restart proxy and disk decorator ( #44647 )
...
* Remove disk restart proxy and disk decorator
* Automatic style fix
* Returned some trash back
* Fix build again
* Fix failing test
Co-authored-by: robot-clickhouse <robot-clickhouse@users.noreply.github.com>
2022-12-30 14:47:30 +01:00
Alexander Tokmakov
4f73046520
Implement SYSTEM DROP DATABASE REPLICA ( #42807 )
2022-12-29 15:34:11 +01:00
Anton Popov
0722020cae
Merge remote-tracking branch 'upstream/master' into HEAD
2022-12-23 18:15:55 +00:00
alesapin
fa467b3398
Minor code polishing
2022-12-22 14:31:42 +01:00
Anton Popov
a2fee110b8
add query for waiting of loading parts and fix test_transactions
2022-12-12 14:33:42 +00:00
Robert Schulze
b78652e138
Query result cache
2022-12-12 10:37:10 +00:00
Vitaly Baranov
91c438eebe
Merge pull request #42263 from vitlibar/refactor-udf
...
Refactor the implementation of user-defined functions
2022-10-15 12:33:10 +02:00
Vitaly Baranov
2e59d671fc
Split UserDefinedSQLObjectsLoader to interface and implementation.
2022-10-13 10:32:32 +02:00
Robert Schulze
78be400ac0
Merge remote-tracking branch 'origin/master' into generated-file-cleanup
2022-10-06 12:22:43 +00:00
Anton Popov
148995894f
add system table asynchronous_inserts_log
2022-10-03 21:35:55 +00:00
Robert Schulze
fd86829824
Consolidate config_core.h into config.h
...
Less duplication, less confusion ...
2022-09-28 13:31:57 +00:00
Vitaly Baranov
5365b105cc
Add SYSTEM RELOAD USERS command.
2022-09-18 12:44:00 +02:00
Robert Schulze
b32b02d844
Merge pull request #40897 from ClickHouse/catboost-bridge-resurrected
...
Move CatBoost evaluation into clickhouse-library-bridge
2022-09-16 13:12:09 +02:00
Alexander Tokmakov
4d146b05a9
Merge pull request #38262 from PolyProgrammist/fix-ordinary-system-unfreeze
...
Fix SYSTEM UNFREEZE for ordinary database
2022-09-13 14:55:11 +03:00
Robert Schulze
fac1be9700
chore: restore SYSTEM RELOAD MODEL(S) and moniting view SYSTEM.MODELS
...
- This commit restores statements "SYSTEM RELOAD MODEL(S)" which provide
a mechanism to update a model explicitly. It also saves potentially
unnecessary reloads of a model from disk after it's initial load.
To keep the complexity low, the semantics of "SYSTEM RELOAD MODEL(S)
was changed from eager to lazy. This means that both statements
previously immedately reloaded the specified/all models, whereas now
the statements only trigger an unload and the first call to
catboostEvaluate() does the actual load.
- Monitoring view SYSTEM.MODELS is also restored but with some obsolete
fields removed. The view was not documented in the past and for now it
remains undocumented. The commit is thus not considered a breach of
ClickHouse's public interface.
2022-09-12 19:33:02 +00:00
Alexander Tokmakov
9bcec2d49a
stop background ops before converting db engine
2022-09-09 18:27:19 +02:00
Robert Schulze
c16707ff00
chore: delete obsolete modelEvaluate() function + SYSTEM.MODELS view
...
- The deleted function modelEvaluate() was superseded by
catboostEvaluate().
- Also delete the external model repository, as modelEvaluate() was it's
last user. Additionally remove the system view SYSTEM.MODELS for
inspecting the repository.
- SYSTEM RELOAD MODELS is also obsolete. HOWEVER, it was retained and
made a no-op instead of deleted.
Why?
The reason is that RBAC in distributed setups works by storing
privileges (granted and revoked) as plain SQL statements in Keeper.
Nodes read these statements at startup and parse them. If a privilege
for SYSTEM RELOAD MODELS exists but parser doesn't recognize it
nodes would fail to come up.
Considered but rejected alternatives:
- Ignore SYSTEM RELOAD MODELS during parsing RBAC privileges and
return an error for regular SYSTEM RELOAD MODELS SQL. Special-case
of no-op behavior, too brittle.
- Remove SYSTEM RELOAD MODELS manually from Keeper via command-line
manipulation of Keeper nodes or via SQL by dropping the privileges.
Needs user intervention during upgrade.
2022-09-08 09:10:11 +00:00
ianton-ru
39e1fc7a0f
Merge branch 'master' into fix-ordinary-system-unfreeze
2022-09-05 17:10:59 +03:00
Luck-Chang
1ac8e739c9
fix some typos and clang-tidy warnings
2022-09-05 09:50:24 +08:00
kssenii
0f747e7987
Move cache files
2022-08-31 17:50:55 +02:00
Alexander Tokmakov
77178a18fa
fix race on system restart replica
2022-08-23 16:10:44 +02:00
Vadim Volodin
9c371d518f
fix enable_unfreeze handler and sanitizer hints
2022-08-23 13:53:06 +03:00
Nikolai Kochetov
5a85531ef7
Merge pull request #38286 from Avogar/schema-inference-cache
...
Add schema inference cache for s3/hdfs/file/url
2022-08-18 13:07:50 +02:00