Skip to content

Commit

Permalink
fix: resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Sep 13, 2023
1 parent 2641ea5 commit 417d4af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/common/meta/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use std::fmt::{Display, Formatter};

use serde::{Deserialize, Serialize};
use store_api::storage::RegionId;
use store_api::storage::{RegionId, RegionNumber};
use strum::Display;
use table::metadata::TableId;

Expand All @@ -27,7 +27,7 @@ pub struct RegionIdent {
pub cluster_id: ClusterId,
pub datanode_id: DatanodeId,
pub table_id: TableId,
pub region_number: u32,
pub region_number: RegionNumber,
}

impl RegionIdent {
Expand Down
5 changes: 1 addition & 4 deletions src/servers/tests/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ fn test_grpc_interceptor() {
let ctx = QueryContext::arc();

let req = Request::Inserts(InsertRequests {
inserts: vec![InsertRequest {
row_count: 0,
..Default::default()
}],
inserts: vec![InsertRequest::default()],
});

let fail = GrpcQueryInterceptor::pre_execute(&di, &req, ctx.clone());
Expand Down
2 changes: 2 additions & 0 deletions src/table/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ pub struct TableInfo {
/// Id and version of the table.
#[builder(default, setter(into))]
pub ident: TableIdent,

// TODO(LFC): Remove the catalog, schema and table names from TableInfo.
/// Name of the table.
#[builder(setter(into))]
pub name: String,
Expand Down

0 comments on commit 417d4af

Please sign in to comment.