From 89a04acadc52ae150281a1c328195ba723a791a1 Mon Sep 17 00:00:00 2001 From: yixinglu <2520865+yixinglu@users.noreply.github.com> Date: Wed, 16 Jun 2021 11:47:39 +0800 Subject: [PATCH] Fix compile error --- src/common/expression/LabelAttributeExpression.h | 1 + src/common/expression/TextSearchExpression.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/expression/LabelAttributeExpression.h b/src/common/expression/LabelAttributeExpression.h index d83a5af2c..9db7b4188 100644 --- a/src/common/expression/LabelAttributeExpression.h +++ b/src/common/expression/LabelAttributeExpression.h @@ -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; diff --git a/src/common/expression/TextSearchExpression.h b/src/common/expression/TextSearchExpression.h index 83814a720..21b28dcda 100644 --- a/src/common/expression/TextSearchExpression.h +++ b/src/common/expression/TextSearchExpression.h @@ -82,8 +82,6 @@ class TextSearchArgument final { }; class TextSearchExpression : public Expression { - friend class Expression; - public: TextSearchExpression(Kind kind, TextSearchArgument* arg) : Expression(kind) { @@ -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 {