mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
fix: validate partition columns (#2393)
fix: partition column must belong to primary keys or equals to time index
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user