mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-17 21:40:37 +00:00
fix: support alter table ~ add ~ custom_type (#5165)
This commit is contained in:
@@ -57,6 +57,10 @@ impl TransformRule for TypeAliasTransformRule {
|
||||
alter_table.alter_operation_mut()
|
||||
{
|
||||
replace_type_alias(target_type)
|
||||
} else if let AlterTableOperation::AddColumn { column_def, .. } =
|
||||
alter_table.alter_operation_mut()
|
||||
{
|
||||
replace_type_alias(&mut column_def.data_type);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user