Skip to content

Commit

Permalink
chore: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 authored and WenyXu committed Nov 12, 2024
1 parent be64e87 commit e11d54d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/metric-engine/src/engine/alter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl MetricEngineInner {
.collect::<HashMap<_, _>>();

// register columns to logical region
// we need to use modfied column metadata from physical region, since it may have been altered(especialy column id)
// we need to use modified column metadata from physical region, since it may have been altered(especially column id)
for col in columns {
if let Some(metadata) = after_alter_cols.get(&col.column_metadata.column_schema.name) {
self.metadata_region
Expand Down
4 changes: 2 additions & 2 deletions src/metric-engine/src/engine/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ impl MetricEngineInner {
&self,
data_region_id: RegionId,
logical_region_id: RegionId,
mut new_columns: &mut [ColumnMetadata],
new_columns: &mut [ColumnMetadata],
) -> Result<()> {
// alter data region
self.data_region
.add_columns(data_region_id, &mut new_columns)
.add_columns(data_region_id, new_columns)
.await?;

// safety: previous step has checked this
Expand Down

0 comments on commit e11d54d

Please sign in to comment.