summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-11-18 13:06:29 +0000
committerArne Juul <arnej@verizonmedia.com>2020-11-18 13:06:29 +0000
commit9acf5d0e6d6380a2b23e33900ff57ca9a6fbd26d (patch)
tree0d0f1f218d6f6a1e4b66afa6285625f788239fc4 /searchlib
parente9364c813f0e9ba95bdea39b62204c67200c0285 (diff)
getConfig().tensorType() already returns error_type for non-tensor attributes
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributevector.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
index 2bcdbc8ecbf..2168bbe4276 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
@@ -310,9 +310,7 @@ AttributeVector::createAttributeHeader(vespalib::stringref fileName) const {
return attribute::AttributeHeader(fileName,
getConfig().basicType(),
getConfig().collectionType(),
- (getConfig().basicType().type() == BasicType::Type::TENSOR
- ? getConfig().tensorType()
- : vespalib::eval::ValueType::error_type()),
+ getConfig().tensorType(),
getEnumeratedSave(),
getConfig().predicateParams(),
getConfig().hnsw_index_params(),