mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-06-01 12:50:40 +00:00
* feat: Change signature of the Region::alter method * refactor: Add builders for ColumnsMetadata and ColumnFamiliesMetadata * feat: Support altering the region metadata Altering the region metadata is done in a copy-write fashion: 1. Convert the `RegionMetadata` into `RegionDescriptor` which is more convenient to mutate 2. Apply the `AlterOperation` to the `RegionDescriptor`. This would mutate the descriptor in-place 3. Create a `RegionMetadataBuilder` from the descriptor, bump the version and then build the new metadata * feat: Implement altering table using the new Region::alter api * refactor: Replaced wal name by region id Region id is cheaper to clone than name * chore: Remove pub(crate) of build_xxxx in engine mod * style: fix clippy * test: Add tests for AlterOperation and RegionMetadata::alter * chore: ColumnsMetadataBuilder methods return &mut Self