From 883c07d9182e2d3bc727d0d2f8e184aef757fbc4 Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Wed, 1 Nov 2023 14:37:56 +0800 Subject: [PATCH] remove Hash derive --- src/prost/build.rs | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/prost/build.rs b/src/prost/build.rs index 342ca879b75db..dcc4257e627b4 100644 --- a/src/prost/build.rs +++ b/src/prost/build.rs @@ -116,25 +116,23 @@ fn main() -> Result<(), Box> { .type_attribute("plan_common.ColumnDesc", "#[derive(Eq, Hash)]") .type_attribute("common.ColumnOrder", "#[derive(Eq, Hash)]") .type_attribute("common.OrderType", "#[derive(Eq, Hash)]") - .type_attribute("hummock.TableStats", "#[derive(Eq, Hash)]") - .type_attribute("hummock.SstableInfo", "#[derive(Eq, Hash)]") - .type_attribute("hummock.KeyRange", "#[derive(Eq, Hash)]") - .type_attribute("hummock.CompactionConfig", "#[derive(Eq, Hash)]") - .type_attribute("hummock.GroupDelta.delta_type", "#[derive(Eq, Hash)]") - .type_attribute("hummock.IntraLevelDelta", "#[derive(Eq, Hash)]") - .type_attribute("hummock.GroupConstruct", "#[derive(Eq, Hash)]") - .type_attribute("hummock.GroupDestroy", "#[derive(Eq, Hash)]") - .type_attribute("hummock.GroupMetaChange", "#[derive(Eq, Hash)]") - .type_attribute("hummock.GroupTableChange", "#[derive(Eq, Hash)]") - .type_attribute("hummock.GroupDelta", "#[derive(Eq, Hash)]") - .type_attribute( - "hummock.LevelHandler.RunningCompactTask", - "#[derive(Eq, Hash)]", - ) - .type_attribute("hummock.LevelHandler", "#[derive(Eq, Hash)]") - .type_attribute("hummock.TableOption", "#[derive(Eq, Hash)]") - .type_attribute("hummock.InputLevel", "#[derive(Eq, Hash)]") - .type_attribute("hummock.CompactTask", "#[derive(Eq, Hash)]") + // Eq is required to derive `FromJsonQueryResult` for models in risingwave_meta_model_v2. + .type_attribute("hummock.TableStats", "#[derive(Eq)]") + .type_attribute("hummock.SstableInfo", "#[derive(Eq)]") + .type_attribute("hummock.KeyRange", "#[derive(Eq)]") + .type_attribute("hummock.CompactionConfig", "#[derive(Eq)]") + .type_attribute("hummock.GroupDelta.delta_type", "#[derive(Eq)]") + .type_attribute("hummock.IntraLevelDelta", "#[derive(Eq)]") + .type_attribute("hummock.GroupConstruct", "#[derive(Eq)]") + .type_attribute("hummock.GroupDestroy", "#[derive(Eq)]") + .type_attribute("hummock.GroupMetaChange", "#[derive(Eq)]") + .type_attribute("hummock.GroupTableChange", "#[derive(Eq)]") + .type_attribute("hummock.GroupDelta", "#[derive(Eq)]") + .type_attribute("hummock.LevelHandler.RunningCompactTask", "#[derive(Eq)]") + .type_attribute("hummock.LevelHandler", "#[derive(Eq)]") + .type_attribute("hummock.TableOption", "#[derive(Eq)]") + .type_attribute("hummock.InputLevel", "#[derive(Eq)]") + .type_attribute("hummock.CompactTask", "#[derive(Eq)]") // =================== .out_dir(out_dir.as_path()) .compile(&protos, &[proto_dir.to_string()])