mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-12-05 08:50:58 +00:00
fix: reject invalid decimals in gRPC modify column type
Signed-off-by: dayan02dev <pawarudayan92@gmail.com>
This commit is contained in:
1 parent
63d1ca7ce2
commit
e925e84c50
1 file changed
+6
-3
@@ -223,9 +223,12 @@ pub fn alter_expr_to_request(
|
||||
let modify_column_type_requests = modify_column_types
|
||||
.into_iter()
|
||||
.map(|cct| {
|
||||
let target_type =
|
||||
ColumnDataTypeWrapper::new(cct.target_type(), cct.target_type_extension)
|
||||
.into();
|
||||
let target_type = ColumnDataTypeWrapper::try_new(
|
||||
cct.target_type,
|
||||
cct.target_type_extension,
|
||||
)
|
||||
.context(error::ColumnDataTypeSnafu)?
|
||||
.into();
|
||||
|
||||
Ok(ModifyColumnTypeRequest {
|
||||
column_name: cct.column_name,
|
||||
|
||||
Reference in new issue
Block a user