From 2ee3e1d2e9fdda8d10a91e616e3a4f8d758d7dbe Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Wed, 28 Apr 2021 15:49:57 +0200 Subject: Use owner's dimensions in BackedOverridableQueryProfile Use owner's dimensions rather than the backed's in BackedObverridableQueryProfile. This matters when a profile references a profile with different but overlapping dimensions and both the owner and referred profile assigns values for the same paths, within their respective dimension spaces. --- .../main/java/com/yahoo/search/query/profile/QueryProfileVariant.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java') diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java b/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java index f6c43eab8a0..855befad658 100644 --- a/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java +++ b/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java @@ -37,7 +37,7 @@ public class QueryProfileVariant implements Cloneable, Comparable values() { + public Map values() { if (values == null) { if (frozen) return Collections.emptyMap(); @@ -68,6 +68,8 @@ public class QueryProfileVariant implements Cloneable, Comparable