Skip to content

Commit be4e453

Browse files
committed
Update tck tests
1 parent 783cfda commit be4e453

File tree

2 files changed

+518
-44
lines changed

2 files changed

+518
-44
lines changed

src/graph/executor/query/IndexScanExecutor.cpp

+7-4
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ folly::Future<Status> IndexScanExecutor::indexScan() {
3030
auto filterStr = lookup->queryContext().front().get_filter();
3131
Expression *filter = Expression::decode(qctx()->objPool(), filterStr);
3232
if (filter->kind() != Expression::Kind::kRelEQ && filter->kind() != Expression::Kind::kRelIn) {
33-
return Status::Error("The kind of filter expression is invalid.");
33+
return Status::Error("The kind of filter expression is invalid: %s",
34+
filter->toString().c_str());
3435
}
3536
auto relFilter = static_cast<const RelationalExpression *>(filter);
36-
if (relFilter->right()->kind() != Expression::Kind::kLabel) {
37-
return Status::Error("The kind of expression is not label expression.");
37+
auto right = DCHECK_NOTNULL(relFilter->right());
38+
if (right->kind() != Expression::Kind::kLabel) {
39+
return Status::Error("The kind of expression is not label expression: %s",
40+
right->toString().c_str());
3841
}
39-
const auto &colName = static_cast<const LabelExpression *>(relFilter->right())->name();
42+
const auto &colName = static_cast<const LabelExpression *>(right)->name();
4043
const auto &result = ectx_->getResult(lookup->inputVar());
4144
std::vector<Expression *> ops;
4245
std::unordered_set<Value> unique;

0 commit comments

Comments
 (0)