From 253740dbcd1d26c86c5747490c65f5c1b75c83f9 Mon Sep 17 00:00:00 2001 From: xtcyclist <7731943+xtcyclist@users.noreply.github.com> Date: Tue, 31 Jan 2023 18:17:41 +0800 Subject: [PATCH] fix. --- src/graph/executor/query/DataCollectExecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/executor/query/DataCollectExecutor.cpp b/src/graph/executor/query/DataCollectExecutor.cpp index 125f4ea95a8..0b51e36ee03 100644 --- a/src/graph/executor/query/DataCollectExecutor.cpp +++ b/src/graph/executor/query/DataCollectExecutor.cpp @@ -65,10 +65,10 @@ Status DataCollectExecutor::collectSubgraph(const std::vector& vars ds.colNames = std::move(colNames_); const auto& hist = ectx_->getHistory(vars[0]); for (const auto& result : hist) { - auto iter = result.iter(); if (!result.iterRef()->isGetNeighborsIter()) { continue; } + auto iter = result.iter(); auto* gnIter = static_cast(iter.get()); List vertices; List edges;