summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-06-03 21:56:23 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-06-03 21:56:23 +0000
commit5e683c18453928c7373f1fdadacd44f21518e47c (patch)
treef46054c8bd2bc0ad337adab885479f2439135459 /eval
parent21e2f20a4f8b8299ddf01a5f337a8170934083de (diff)
Let ImportedAttributesRepo return a reference to a shared_ptr instead of a shared_ptr since that is all you need.
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/instruction/generic_join.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval/src/vespa/eval/instruction/generic_join.cpp b/eval/src/vespa/eval/instruction/generic_join.cpp
index e1e02070466..60dc3e55143 100644
--- a/eval/src/vespa/eval/instruction/generic_join.cpp
+++ b/eval/src/vespa/eval/instruction/generic_join.cpp
@@ -36,7 +36,7 @@ generic_mixed_join(const Value &lhs, const Value &rhs, const JoinParam &param)
SparseJoinState sparse(param.sparse_plan, lhs.index(), rhs.index());
size_t expected_subspaces = sparse.first_index.size();
if (param.sparse_plan.lhs_overlap.empty() && param.sparse_plan.rhs_overlap.empty()) {
- expected_subspaces = sparse.first_index.size() * sparse.second_index.size();
+ expected_subspaces = expected_subspaces * sparse.second_index.size();
}
auto builder = param.factory.create_transient_value_builder<OCT>(param.res_type, param.sparse_plan.sources.size(), param.dense_plan.out_size, expected_subspaces);
auto outer = sparse.first_index.create_view({});