aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-02-01 11:44:31 +0100
committerJon Bratseth <bratseth@oath.com>2018-02-01 11:44:31 +0100
commit99ef288b5023f6879a944eaf2ba325de8997aa50 (patch)
treedc46760052327a41d5a585008aa2a67df670a75b /config-model/src
parentc9044baf967cb8aac50ba63519b9f5b9097d9d8e (diff)
Allow compatible changes to stored tensors
Allow increasing the size of tensor dimensions without making stored data incompatible.
Diffstat (limited to 'config-model/src')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/processing/ValidateFieldTypes.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/processing/ValidateFieldTypes.java b/config-model/src/main/java/com/yahoo/searchdefinition/processing/ValidateFieldTypes.java
index d9b93d11a52..8e0f7a7f340 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/processing/ValidateFieldTypes.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/processing/ValidateFieldTypes.java
@@ -15,7 +15,7 @@ import java.util.HashMap;
import java.util.Map;
/**
- * This Processor checks to make sure all fields with the same name have the same {@link DataType}. This check
+ * This Processor makes sure all fields with the same name have the same {@link DataType}. This check
* explicitly disregards whether a field is an index field, an attribute or a summary field. This is a requirement if we
* hope to move to a model where index fields, attributes and summary fields share a common field class.
*
@@ -50,7 +50,7 @@ public class ValidateFieldTypes extends Processor {
if (seenType == null) {
seenFields.put(fieldName, fieldType);
} else if ( ! compatibleTypes(seenType, fieldType)) {
- throw newProcessException(searchName, fieldName, "Incompatible types. Expected " +
+ throw newProcessException(searchName, fieldName, "Incompatible types. Expected " +
seenType.getName() + " for " + fieldDesc +
" '" + fieldName + "', got " + fieldType.getName() + ".");
}
@@ -69,5 +69,5 @@ public class ValidateFieldTypes extends Processor {
}
return seenType.equals(fieldType);
}
-
+
}