Commit be4e453 1 parent 783cfda commit be4e453 Copy full SHA for be4e453
File tree 2 files changed +518
-44
lines changed
2 files changed +518
-44
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,16 @@ folly::Future<Status> IndexScanExecutor::indexScan() {
30
30
auto filterStr = lookup->queryContext ().front ().get_filter ();
31
31
Expression *filter = Expression::decode (qctx ()->objPool (), filterStr);
32
32
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 ());
34
35
}
35
36
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 ());
38
41
}
39
- const auto &colName = static_cast <const LabelExpression *>(relFilter-> right () )->name ();
42
+ const auto &colName = static_cast <const LabelExpression *>(right)->name ();
40
43
const auto &result = ectx_->getResult (lookup->inputVar ());
41
44
std::vector<Expression *> ops;
42
45
std::unordered_set<Value> unique;
You can’t perform that action at this time.
0 commit comments