[CodeFormat] Clang-format cpp sources (#4965)
Clang-format all c++ source files.
This commit is contained in:
@ -19,24 +19,21 @@
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "exprs/anyval_util.h"
|
||||
#include "exprs/anyval_util.h"
|
||||
#include "runtime/raw_value.h"
|
||||
#include "runtime/string_value.hpp"
|
||||
#include "runtime/runtime_state.h"
|
||||
#include "runtime/string_value.hpp"
|
||||
|
||||
namespace doris {
|
||||
|
||||
InPredicate::InPredicate(const TExprNode& node) :
|
||||
Predicate(node),
|
||||
_is_not_in(node.in_predicate.is_not_in),
|
||||
_is_prepare(false),
|
||||
_null_in_set(false),
|
||||
_hybrid_set() {
|
||||
}
|
||||
InPredicate::InPredicate(const TExprNode& node)
|
||||
: Predicate(node),
|
||||
_is_not_in(node.in_predicate.is_not_in),
|
||||
_is_prepare(false),
|
||||
_null_in_set(false),
|
||||
_hybrid_set() {}
|
||||
|
||||
InPredicate::~InPredicate() {
|
||||
}
|
||||
InPredicate::~InPredicate() {}
|
||||
|
||||
Status InPredicate::prepare(RuntimeState* state, const TypeDescriptor& type) {
|
||||
if (_is_prepare) {
|
||||
@ -51,10 +48,8 @@ Status InPredicate::prepare(RuntimeState* state, const TypeDescriptor& type) {
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Status InPredicate::open(
|
||||
RuntimeState* state,
|
||||
ExprContext* context,
|
||||
FunctionContext::FunctionStateScope scope) {
|
||||
Status InPredicate::open(RuntimeState* state, ExprContext* context,
|
||||
FunctionContext::FunctionStateScope scope) {
|
||||
Expr::open(state, context, scope);
|
||||
|
||||
for (int i = 1; i < _children.size(); ++i) {
|
||||
@ -78,8 +73,8 @@ Status InPredicate::open(
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Status InPredicate::prepare(
|
||||
RuntimeState* state, const RowDescriptor& row_desc, ExprContext* context) {
|
||||
Status InPredicate::prepare(RuntimeState* state, const RowDescriptor& row_desc,
|
||||
ExprContext* context) {
|
||||
for (int i = 0; i < _children.size(); ++i) {
|
||||
RETURN_IF_ERROR(_children[i]->prepare(state, row_desc, context));
|
||||
}
|
||||
@ -138,4 +133,4 @@ BooleanVal InPredicate::get_boolean_val(ExprContext* ctx, TupleRow* row) {
|
||||
return BooleanVal(_is_not_in);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace doris
|
||||
|
||||
Reference in New Issue
Block a user