Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: apply column-aware row encoding & enable schema change #8394

Merged
merged 14 commits into from
Mar 9, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ impl RowEncoding {
self.flag |= Flag::OFFSET16;
usize_offsets
.iter()
.for_each(|m| self.offsets.put_u16(*m as u16));
.for_each(|m| self.offsets.put_u16_le(*m as u16));
BugenZhao marked this conversation as resolved.
Show resolved Hide resolved
}
_n @ ..=const { u32::MAX as usize } => {
self.flag |= Flag::OFFSET32;
usize_offsets
.iter()
.for_each(|m| self.offsets.put_u32(*m as u32));
.for_each(|m| self.offsets.put_u32_le(*m as u32));
}
_ => unreachable!("encoding length exceeds u32"),
}
Expand Down
4 changes: 1 addition & 3 deletions src/meta/src/stream/stream_graph/fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ use anyhow::Context;
use enum_as_inner::EnumAsInner;
use itertools::Itertools;
use risingwave_common::bail;
use risingwave_common::catalog::{
generate_internal_table_name_with_type, TableId, INITIAL_TABLE_VERSION_ID,
};
use risingwave_common::catalog::{generate_internal_table_name_with_type, TableId};
use risingwave_pb::catalog::Table;
use risingwave_pb::meta::table_fragments::fragment::FragmentDistributionType;
use risingwave_pb::meta::table_fragments::Fragment;
Expand Down