Skip to content

Commit

Permalink
Update tck tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed May 16, 2023
1 parent 783cfda commit be4e453
Show file tree
Hide file tree
Showing 2 changed files with 518 additions and 44 deletions.
11 changes: 7 additions & 4 deletions src/graph/executor/query/IndexScanExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ folly::Future<Status> IndexScanExecutor::indexScan() {
auto filterStr = lookup->queryContext().front().get_filter();
Expression *filter = Expression::decode(qctx()->objPool(), filterStr);
if (filter->kind() != Expression::Kind::kRelEQ && filter->kind() != Expression::Kind::kRelIn) {
return Status::Error("The kind of filter expression is invalid.");
return Status::Error("The kind of filter expression is invalid: %s",
filter->toString().c_str());
}
auto relFilter = static_cast<const RelationalExpression *>(filter);
if (relFilter->right()->kind() != Expression::Kind::kLabel) {
return Status::Error("The kind of expression is not label expression.");
auto right = DCHECK_NOTNULL(relFilter->right());
if (right->kind() != Expression::Kind::kLabel) {
return Status::Error("The kind of expression is not label expression: %s",
right->toString().c_str());
}
const auto &colName = static_cast<const LabelExpression *>(relFilter->right())->name();
const auto &colName = static_cast<const LabelExpression *>(right)->name();
const auto &result = ectx_->getResult(lookup->inputVar());
std::vector<Expression *> ops;
std::unordered_set<Value> unique;
Expand Down
Loading

0 comments on commit be4e453

Please sign in to comment.