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

Commit

Permalink
Fix compile error (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu authored Jun 21, 2021
1 parent 70ce99a commit 01c17e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/common/expression/LabelAttributeExpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class LabelAttributeExpression final : public Expression {

const Value& eval(ExpressionContext&) override {
LOG(FATAL) << "LabelAttributeExpression has to be rewritten";
return Value::kNullBadData;
}

void accept(ExprVisitor *visitor) override;
Expand Down
3 changes: 1 addition & 2 deletions src/common/expression/TextSearchExpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ class TextSearchArgument final {
};

class TextSearchExpression : public Expression {
friend class Expression;

public:
TextSearchExpression(Kind kind, TextSearchArgument* arg)
: Expression(kind) {
Expand All @@ -94,6 +92,7 @@ class TextSearchExpression : public Expression {

const Value& eval(ExpressionContext&) override {
LOG(FATAL) << "TextSearchExpression has to be rewritten";
return Value::kNullBadData;
}

void accept(ExprVisitor*) override {
Expand Down

0 comments on commit 01c17e3

Please sign in to comment.