Skip to content

Commit d70cce1

Browse files
committed
Rename stage #5
1 parent 152248c commit d70cce1

39 files changed

+48
-3490
lines changed

crates/metastore/src/metastore.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ pub trait Metastore: std::fmt::Debug + Send + Sync {
125125

126126
///
127127
/// vol -> List of volumes
128-
/// vol/<name> -> `IceBucketVolume`
128+
/// vol/<name> -> `Volume`
129129
/// db -> List of databases
130-
/// db/<name> -> `IceBucketDatabase`
130+
/// db/<name> -> `Database`
131131
/// sch/<db> -> List of schemas for <db>
132-
/// sch/<db>/<name> -> `IceBucketSchema`
132+
/// sch/<db>/<name> -> `Schema`
133133
/// tbl/<db>/<schema> -> List of tables for <schema> in <db>
134-
/// tbl/<db>/<schema>/<table> -> `IceBucketTable`
134+
/// tbl/<db>/<schema>/<table> -> `Table`
135135
///
136136
const KEY_VOLUME: &str = "vol";
137137
const KEY_DATABASE: &str = "db";

crates/runtime/src/execution/catalogs/metastore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use object_store::ObjectStore;
4343
use snafu::ResultExt;
4444
use url::Url;
4545

46-
pub const DEFAULT_CATALOG: &str = "icebucket";
46+
pub const DEFAULT_CATALOG: &str = "embucket";
4747

4848
pub type TableProviderCache = DashMap<String, Arc<dyn TableProvider>>;
4949
pub type SchemaProviderCache = DashMap<String, TableProviderCache>;

crates/runtime/src/execution/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl IceBucketQuery {
129129
.database
130130
.clone()
131131
.or_else(|| self.session.get_session_variable("database"))
132-
.or_else(|| Some("icebucket".to_string()))
132+
.or_else(|| Some("embucket".to_string()))
133133
}
134134

135135
fn current_schema(&self) -> Option<String> {

crates/runtime/src/execution/tests/query.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async fn test_context_name_injection() {
305305
async fn test_create_table_with_timestamp_nanosecond() {
306306
let (execution_svc, session_id) = prepare_env().await;
307307
let table_ident = MetastoreTableIdent {
308-
database: "icebucket".to_string(),
308+
database: "embucket".to_string(),
309309
schema: "public".to_string(),
310310
table: "target_table".to_string(),
311311
};
@@ -332,7 +332,7 @@ async fn test_create_table_with_timestamp_nanosecond() {
332332
async fn test_drop_table() {
333333
let (execution_svc, session_id) = prepare_env().await;
334334
let table_ident = MetastoreTableIdent {
335-
database: "icebucket".to_string(),
335+
database: "embucket".to_string(),
336336
schema: "public".to_string(),
337337
table: "target_table".to_string(),
338338
};
@@ -389,17 +389,17 @@ async fn prepare_env() -> (ExecutionService, String) {
389389
.expect("Failed to create volume");
390390
metastore
391391
.create_database(
392-
&"icebucket".to_string(),
392+
&"embucket".to_string(),
393393
MetastoreDatabase {
394-
ident: "icebucket".to_string(),
394+
ident: "embucket".to_string(),
395395
properties: None,
396396
volume: "test_volume".to_string(),
397397
},
398398
)
399399
.await
400400
.expect("Failed to create database");
401401
let schema_ident = MetastoreSchemaIdent {
402-
database: "icebucket".to_string(),
402+
database: "embucket".to_string(),
403403
schema: "public".to_string(),
404404
};
405405
metastore

crates/runtime/src/execution/tests/service.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ async fn test_service_upload_file() {
7474
.expect("Failed to create volume");
7575
metastore
7676
.create_database(
77-
&"icebucket".to_string(),
77+
&"embucket".to_string(),
7878
MetastoreDatabase {
79-
ident: "icebucket".to_string(),
79+
ident: "embucket".to_string(),
8080
properties: None,
8181
volume: "test_volume".to_string(),
8282
},
8383
)
8484
.await
8585
.expect("Failed to create database");
8686
let schema_ident = MetastoreSchemaIdent {
87-
database: "icebucket".to_string(),
87+
database: "embucket".to_string(),
8888
schema: "public".to_string(),
8989
};
9090
metastore
@@ -100,7 +100,7 @@ async fn test_service_upload_file() {
100100

101101
let file_name = "test.csv";
102102
let table_ident = MetastoreTableIdent {
103-
database: "icebucket".to_string(),
103+
database: "embucket".to_string(),
104104
schema: "public".to_string(),
105105
table: "target_table".to_string(),
106106
};
@@ -207,17 +207,17 @@ async fn test_service_create_table_file_volume() {
207207
.expect("Failed to create volume");
208208
metastore
209209
.create_database(
210-
&"icebucket".to_string(),
210+
&"embucket".to_string(),
211211
MetastoreDatabase {
212-
ident: "icebucket".to_string(),
212+
ident: "embucket".to_string(),
213213
properties: None,
214214
volume: "test_volume".to_string(),
215215
},
216216
)
217217
.await
218218
.expect("Failed to create database");
219219
let schema_ident = MetastoreSchemaIdent {
220-
database: "icebucket".to_string(),
220+
database: "embucket".to_string(),
221221
schema: "public".to_string(),
222222
};
223223
metastore
@@ -232,7 +232,7 @@ async fn test_service_create_table_file_volume() {
232232
.expect("Failed to create schema");
233233

234234
let table_ident = MetastoreTableIdent {
235-
database: "icebucket".to_string(),
235+
database: "embucket".to_string(),
236236
schema: "public".to_string(),
237237
table: "target_table".to_string(),
238238
};

crates/runtime/src/http/control/handlers/mod.rs

Lines changed: 0 additions & 19 deletions
This file was deleted.

crates/runtime/src/http/control/handlers/storage_profiles.rs

Lines changed: 0 additions & 115 deletions
This file was deleted.

crates/runtime/src/http/control/handlers/warehouses.rs

Lines changed: 0 additions & 107 deletions
This file was deleted.

crates/runtime/src/http/control/mod.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)