Skip to content

Commit

Permalink
chore: Remove unused engine_options
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Sep 18, 2023
1 parent b582ea4 commit 5bf31f5
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/cmd/src/cli/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ fn create_table_info(table_id: TableId, table_name: TableName) -> RawTableInfo {
created_on: chrono::DateTime::default(),
primary_key_indices: vec![],
next_column_id: columns as u32 + 1,
engine_options: Default::default(),
value_indices: vec![],
options: Default::default(),
region_numbers: (1..=100).collect(),
Expand Down
1 change: 0 additions & 1 deletion src/common/meta/src/key/table_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ mod tests {
created_on: chrono::DateTime::default(),
primary_key_indices: vec![0, 1],
next_column_id: 3,
engine_options: Default::default(),
value_indices: vec![2, 3],
options: Default::default(),
region_numbers: vec![1],
Expand Down
2 changes: 0 additions & 2 deletions src/meta-srv/src/procedure/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ pub mod mock {

#[cfg(test)]
pub mod test_data {
use std::collections::HashMap;
use std::sync::Arc;

use chrono::DateTime;
Expand Down Expand Up @@ -178,7 +177,6 @@ pub mod test_data {
engine: MITO2_ENGINE.to_string(),
next_column_id: 3,
region_numbers: vec![1, 2, 3],
engine_options: HashMap::new(),
options: TableOptions::default(),
created_on: DateTime::default(),
partition_key_indices: vec![],
Expand Down
3 changes: 0 additions & 3 deletions src/meta-srv/src/table_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ pub(crate) async fn fetch_tables(

#[cfg(test)]
pub(crate) mod tests {
use std::collections::HashMap;

use chrono::DateTime;
use common_catalog::consts::{DEFAULT_CATALOG_NAME, DEFAULT_SCHEMA_NAME, MITO_ENGINE};
use common_meta::key::TableMetadataManagerRef;
Expand Down Expand Up @@ -103,7 +101,6 @@ pub(crate) mod tests {
engine: MITO_ENGINE.to_string(),
next_column_id: 1,
region_numbers: vec![1, 2, 3, 4],
engine_options: HashMap::new(),
options: TableOptions::default(),
created_on: DateTime::default(),
partition_key_indices: vec![],
Expand Down
1 change: 0 additions & 1 deletion src/operator/src/statement/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ fn create_table_info(
engine: create_table.engine.clone(),
next_column_id: column_schemas.len() as u32,
region_numbers: vec![],
engine_options: HashMap::new(),
options: table_options,
created_on: DateTime::default(),
partition_key_indices,
Expand Down
2 changes: 0 additions & 2 deletions src/query/src/sql/show_create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ mod tests {
.value_indices(vec![2, 3])
.engine("mito".to_string())
.next_column_id(0)
.engine_options(Default::default())
.options(Default::default())
.created_on(Default::default())
.region_numbers(regions)
Expand Down Expand Up @@ -297,7 +296,6 @@ WITH(
.primary_key_indices(vec![])
.engine("file".to_string())
.next_column_id(0)
.engine_options(Default::default())
.options(options)
.created_on(Default::default())
.build()
Expand Down
8 changes: 0 additions & 8 deletions src/table/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ pub struct TableMeta {
#[builder(default, setter(into))]
pub region_numbers: Vec<u32>,
pub next_column_id: ColumnId,
// TODO(yingwen): Remove engine_options.
/// Options for table engine.
#[builder(default)]
pub engine_options: HashMap<String, String>,
/// Table options.
#[builder(default)]
pub options: TableOptions,
Expand Down Expand Up @@ -230,7 +226,6 @@ impl TableMeta {
let mut builder = TableMetaBuilder::default();
let _ = builder
.engine(&self.engine)
.engine_options(self.engine_options.clone())
.options(self.options.clone())
.created_on(self.created_on)
.region_numbers(self.region_numbers.clone())
Expand Down Expand Up @@ -532,7 +527,6 @@ pub struct RawTableMeta {
pub engine: String,
pub next_column_id: ColumnId,
pub region_numbers: Vec<u32>,
pub engine_options: HashMap<String, String>,
pub options: TableOptions,
pub created_on: DateTime<Utc>,
#[serde(default)]
Expand All @@ -548,7 +542,6 @@ impl From<TableMeta> for RawTableMeta {
engine: meta.engine,
next_column_id: meta.next_column_id,
region_numbers: meta.region_numbers,
engine_options: meta.engine_options,
options: meta.options,
created_on: meta.created_on,
partition_key_indices: meta.partition_key_indices,
Expand All @@ -567,7 +560,6 @@ impl TryFrom<RawTableMeta> for TableMeta {
engine: raw.engine,
region_numbers: raw.region_numbers,
next_column_id: raw.next_column_id,
engine_options: raw.engine_options,
options: raw.options,
created_on: raw.created_on,
partition_key_indices: raw.partition_key_indices,
Expand Down
1 change: 0 additions & 1 deletion src/table/src/test_util/memtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ impl MemTable {
.value_indices(vec![])
.engine("mito".to_string())
.next_column_id(0)
.engine_options(Default::default())
.options(Default::default())
.created_on(Default::default())
.region_numbers(regions)
Expand Down
1 change: 0 additions & 1 deletion src/table/src/test_util/table_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pub fn test_table_info(
.value_indices(vec![])
.engine("mito".to_string())
.next_column_id(0)
.engine_options(Default::default())
.options(Default::default())
.created_on(Default::default())
.region_numbers(vec![1])
Expand Down

0 comments on commit 5bf31f5

Please sign in to comment.