Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
  • Loading branch information
BugenZhao committed Mar 7, 2023
1 parent 966d290 commit 7fcfeb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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));
}
_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

0 comments on commit 7fcfeb3

Please sign in to comment.