Skip to content

Commit

Permalink
add tag to distribution serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
xx01cyx committed Nov 16, 2024
1 parent 199e9d0 commit 9f20952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optd-cost-model/src/stats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ impl MostCommonValues {
}

#[derive(Serialize, Deserialize, Debug)]
#[serde(tag = "type")]
pub enum Distribution {
TDigest(tdigest::TDigest<Value>),
// Add more types here...
Expand Down

0 comments on commit 9f20952

Please sign in to comment.