Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Fix IndexFullScanRule
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Jul 1, 2021
1 parent 2409f9f commit 34b04ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/optimizer/rule/IndexFullScanBaseRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ StatusOr<TransformResult> IndexFullScanBaseRule::transform(OptContext* ctx,
auto scan = static_cast<const IndexScan*>(matched.planNode());

auto metaClient = ctx->qctx()->getMetaClient();
auto status = metaClient->getTagIndexesFromCache(scan->space());
auto status = scan->isEdge() ? metaClient->getEdgeIndexesFromCache(scan->space())
: metaClient->getTagIndexesFromCache(scan->space());
NG_RETURN_IF_ERROR(status);
auto indexItems = std::move(status).value();

Expand Down

0 comments on commit 34b04ac

Please sign in to comment.