Skip to content

Commit

Permalink
fix hash
Browse files Browse the repository at this point in the history
  • Loading branch information
leiysky committed Aug 26, 2022
1 parent bc541dd commit 950cab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/query/catalog/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub enum NavigationPoint {
TimePoint(DateTime<Utc>),
}

#[derive(Debug, Clone)]
#[derive(Debug, Copy, Clone)]
pub struct TableStatistics {
pub num_rows: Option<u64>,
pub data_size: Option<u64>,
Expand Down
3 changes: 2 additions & 1 deletion src/query/datavalues/src/data_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,9 @@ impl Ord for DataValue {
#[allow(clippy::derive_hash_xor_eq)]
impl Hash for DataValue {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
std::mem::discriminant(self).hash(state);
match self {
DataValue::Null => std::mem::discriminant(self).hash(state),
DataValue::Null => {}
DataValue::Boolean(v) => v.hash(state),
DataValue::UInt64(v) => v.hash(state),
DataValue::Int64(v) => v.hash(state),
Expand Down

0 comments on commit 950cab3

Please sign in to comment.