mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 08:50:40 +00:00
feat(fuzz): add alter table options for alter fuzzer (#5074)
* feat(fuzz): add set table options to alter fuzzer * chore: clippy is happy, I'm sad * chore: happy ci happy * fix: unit test * feat(fuzz): add unset table options to alter fuzzer * fix: unit test * feat(fuzz): add table option validator * fix: make clippy happy * chore: add comments * chore: apply review comments * fix: unit test * feat(fuzz): add more ttl options * fix: #5108 * chore: add comments * chore: add comments
This commit is contained in:
@@ -72,29 +72,20 @@ pub enum AlterTableOperation {
|
||||
target_type: DataType,
|
||||
},
|
||||
/// `SET <table attrs key> = <table attr value>`
|
||||
SetTableOptions {
|
||||
options: Vec<KeyValueOption>,
|
||||
},
|
||||
UnsetTableOptions {
|
||||
keys: Vec<String>,
|
||||
},
|
||||
SetTableOptions { options: Vec<KeyValueOption> },
|
||||
/// `UNSET <table attrs key>`
|
||||
UnsetTableOptions { keys: Vec<String> },
|
||||
/// `DROP COLUMN <name>`
|
||||
DropColumn {
|
||||
name: Ident,
|
||||
},
|
||||
DropColumn { name: Ident },
|
||||
/// `RENAME <new_table_name>`
|
||||
RenameTable {
|
||||
new_table_name: String,
|
||||
},
|
||||
RenameTable { new_table_name: String },
|
||||
/// `MODIFY COLUMN <column_name> SET FULLTEXT [WITH <options>]`
|
||||
SetColumnFulltext {
|
||||
column_name: Ident,
|
||||
options: FulltextOptions,
|
||||
},
|
||||
/// `MODIFY COLUMN <column_name> UNSET FULLTEXT`
|
||||
UnsetColumnFulltext {
|
||||
column_name: Ident,
|
||||
},
|
||||
UnsetColumnFulltext { column_name: Ident },
|
||||
}
|
||||
|
||||
impl Display for AlterTableOperation {
|
||||
|
||||
Reference in New Issue
Block a user