Skip to content

Commit 752c3b4

Browse files
authored
refactor(query): remove cache solt (#16233)
* refactor(query): remove cache solt * refactor(query): remove cache solt * refactor(query): remove cache solt * refactor(query): remove cache solt
1 parent 8467049 commit 752c3b4

File tree

9 files changed

+46
-342
lines changed

9 files changed

+46
-342
lines changed

src/query/service/src/interpreters/access/privilege_access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const SYSTEM_TABLES_ALLOW_LIST: [&str; 19] = [
8383
];
8484

8585
// table functions that need `Super` privilege
86-
const SYSTEM_TABLE_FUNCTIONS: [&str; 2] = ["set_cache_capacity", "fuse_amend"];
86+
const SYSTEM_TABLE_FUNCTIONS: [&str; 1] = ["fuse_amend"];
8787

8888
impl PrivilegeAccess {
8989
pub fn create(ctx: Arc<QueryContext>) -> Box<dyn AccessChecker> {

src/query/service/src/table_functions/table_function_factory.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use crate::catalogs::SYS_TBL_FUNC_ID_BEGIN;
3939
use crate::storages::fuse::table_functions::ClusteringInformationFunc;
4040
use crate::storages::fuse::table_functions::FuseSegmentFunc;
4141
use crate::storages::fuse::table_functions::FuseSnapshotFunc;
42-
use crate::storages::fuse::table_functions::SetCacheCapacityFunc;
4342
use crate::table_functions::async_crash_me::AsyncCrashMeTable;
4443
use crate::table_functions::cloud::TaskDependentsEnableTable;
4544
use crate::table_functions::cloud::TaskDependentsTable;
@@ -135,14 +134,6 @@ impl TableFunctionFactory {
135134
),
136135
);
137136

138-
creators.insert(
139-
"set_cache_capacity".to_string(),
140-
(
141-
next_id(),
142-
Arc::new(TableFunctionTemplate::<SetCacheCapacityFunc>::create),
143-
),
144-
);
145-
146137
creators.insert(
147138
"fuse_segment".to_string(),
148139
(

src/query/storages/common/cache_manager/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ databend-storages-common-cache = { workspace = true }
2020
databend-storages-common-index = { workspace = true }
2121
databend-storages-common-table-meta = { workspace = true }
2222
log = { workspace = true }
23-
parking_lot = { workspace = true }
2423

2524
[lints]
2625
workspace = true

0 commit comments

Comments
 (0)