Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang Zhao committed Mar 23, 2023
1 parent fe3ef50 commit bb6c07c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/stream/src/common/table/state_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,12 +815,10 @@ where
)
});
if let Some(watermark_suffix) = watermark_suffix {
let range_begin_suffix =
if prefix_serializer.unwrap().get_order_types()[0].nulls_are_largest() {
vec![]
} else {
vec![1u8]
};
let range_begin_suffix = watermark_suffix
.first()
.map(|bit| vec![*bit])
.unwrap_or_default();
trace!(table_id = %self.table_id, watermark = ?watermark_suffix, vnodes = ?{
self.vnodes.iter_vnodes().collect_vec()
}, "delete range");
Expand Down

0 comments on commit bb6c07c

Please sign in to comment.