Skip to content

Commit

Permalink
fix: dedup field names when compacting (#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky authored Aug 1, 2024
1 parent b438c24 commit 714bbd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query-engine/core/src/query_document/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use crate::{
query_ast::{QueryOption, QueryOptions},
query_graph_builder::resolve_compound_field,
};
use itertools::Itertools;
use query_structure::Model;
use schema::{constants::*, QuerySchema};
use std::collections::HashMap;
Expand Down Expand Up @@ -293,6 +294,7 @@ impl CompactedDocument {
_ => vec![key.to_owned()],
})
})
.unique()
.collect();

Self {
Expand Down

0 comments on commit 714bbd4

Please sign in to comment.