fix: compile error after updating protos (#2435)

This commit is contained in:
dennis zhuang
2023-09-18 20:12:39 +08:00
committed by GitHub
parent df6c79a378
commit 342cc0a4c4
2 changed files with 8 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ mod test {
is_nullable: true,
default_constraint: vec![],
semantic_type: SemanticType::Field as i32,
..Default::default()
},
ColumnDef {
name: "ts".to_string(),
@@ -98,6 +99,7 @@ mod test {
is_nullable: false,
default_constraint: vec![],
semantic_type: SemanticType::Timestamp as i32,
..Default::default()
},
],
time_index: "ts".to_string(),
@@ -121,6 +123,7 @@ mod test {
is_nullable: true,
default_constraint: vec![],
semantic_type: SemanticType::Field as i32,
..Default::default()
}),
location: None,
}],

View File

@@ -253,6 +253,7 @@ pub async fn test_insert_and_select(store_type: StorageType) {
is_nullable: true,
default_constraint: vec![],
semantic_type: SemanticType::Field as i32,
..Default::default()
};
let kind = Kind::AddColumns(AddColumns {
add_columns: vec![AddColumn {
@@ -343,6 +344,7 @@ fn testing_create_expr() -> CreateTableExpr {
is_nullable: false,
default_constraint: vec![],
semantic_type: SemanticType::Tag as i32,
..Default::default()
},
ColumnDef {
name: "cpu".to_string(),
@@ -350,6 +352,7 @@ fn testing_create_expr() -> CreateTableExpr {
is_nullable: true,
default_constraint: vec![],
semantic_type: SemanticType::Field as i32,
..Default::default()
},
ColumnDef {
name: "memory".to_string(),
@@ -357,6 +360,7 @@ fn testing_create_expr() -> CreateTableExpr {
is_nullable: true,
default_constraint: vec![],
semantic_type: SemanticType::Field as i32,
..Default::default()
},
ColumnDef {
name: "ts".to_string(),
@@ -364,6 +368,7 @@ fn testing_create_expr() -> CreateTableExpr {
is_nullable: false,
default_constraint: vec![],
semantic_type: SemanticType::Timestamp as i32,
..Default::default()
},
];
CreateTableExpr {