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:
Yohan Wal
2024-12-12 12:21:38 +08:00
committed by GitHub
parent d53fbcb936
commit 03ad6e2a8d
20 changed files with 742 additions and 68 deletions

View File

@@ -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 {