Skip to content

Commit

Permalink
revert #1653
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page committed Apr 19, 2022
1 parent ddddc2f commit c44f859
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/frontend/src/optimizer/property/distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@ impl Distribution {
matches!(self, Distribution::Any)
}

/// Get distribution column indices.
/// Get distribution column indices. After optimization, only `HashShard` and `Single` are
/// valid.
pub fn dist_column_indices(&self) -> &[usize] {
match self {
Distribution::Single => Default::default(),
Distribution::HashShard(dists) => dists,
_ => &[],
_ => unreachable!(),
}
}
}
Expand Down

0 comments on commit c44f859

Please sign in to comment.