Skip to content

Commit

Permalink
try try
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Sep 3, 2024
1 parent a7d946f commit 8a144d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/src/hash/table_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl TableDistribution {
) -> Self {
let compute_vnode = if let Some(vnode_col_idx_in_pk) = vnode_col_idx_in_pk {
ComputeVnode::VnodeColumnIndex {
vnodes: vnodes.expect("vnodes must be `Some` as vnode column is set"),
vnodes: vnodes.unwrap_or_else(|| Bitmap::singleton().into()),
vnode_col_idx_in_pk,
}
} else if !dist_key_in_pk_indices.is_empty() {
Expand Down Expand Up @@ -139,7 +139,7 @@ impl TableDistribution {
match &self.compute_vnode {
ComputeVnode::DistKeyIndices { vnodes, .. } => vnodes,
ComputeVnode::VnodeColumnIndex { vnodes, .. } => vnodes,
ComputeVnode::Singleton => &*SINGLETON_VNODES,
ComputeVnode::Singleton => &SINGLETON_VNODES,
}
}

Expand Down

0 comments on commit 8a144d7

Please sign in to comment.