fix: validate partition columns (#2393)

fix: partition column must belong to primary keys or equals to time index
This commit is contained in:
LFC
2023-09-15 18:07:32 +08:00
committed by GitHub
parent 4b13c88752
commit a688760563
3 changed files with 62 additions and 6 deletions

View File

@@ -347,7 +347,7 @@ CREATE TABLE {table_name} (
.collect(),
..Default::default()
}),
semantic_type: SemanticType::Tag as i32,
semantic_type: SemanticType::Field as i32,
datatype: ColumnDataType::String as i32,
..Default::default()
},
@@ -421,7 +421,7 @@ CREATE TABLE {table_name} (
},
Column {
column_name: "b".to_string(),
semantic_type: SemanticType::Tag as i32,
semantic_type: SemanticType::Field as i32,
values: Some(Values {
string_values: b,
..Default::default()