summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-03-04 16:28:40 +0100
committerGitHub <noreply@github.com>2022-03-04 16:28:40 +0100
commit51f12b66bcd5fcaa88a2d1c1d60136e12c476172 (patch)
tree7b5a87b6813d610976cccc181871347f34bb6513 /searchlib
parent32848b3500bd03288ca36919d73cb04c70d18595 (diff)
parent46f44aed6e46f5a81a5f7c01745f97ec31c33d9f (diff)
Merge pull request #21540 from vespa-engine/balder/remove-identifiable-from-datatype
Remove identifiable from document::DataType
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/expression/documentfieldnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/expression/documentfieldnode.cpp b/searchlib/src/vespa/searchlib/expression/documentfieldnode.cpp
index dcd4c98f2c3..df3d2e5b19b 100644
--- a/searchlib/src/vespa/searchlib/expression/documentfieldnode.cpp
+++ b/searchlib/src/vespa/searchlib/expression/documentfieldnode.cpp
@@ -132,7 +132,7 @@ void DocumentFieldNode::onPrepare(bool preserveAccurateTypes)
_handler.reset(new SingleHandler(*_value));
}
} else {
- if (endOfPath.getDataType().getClass().inherits(document::StructuredDataType::classId)) {
+ if (endOfPath.getDataType().isStructured()) {
throw std::runtime_error(make_string("I am not able to access structured field '%s'", _fieldName.c_str()));
} else {
throw std::runtime_error(make_string("I am not able to access field '%s' for reasons I do not know", _fieldName.c_str()));