[CP] Fix merge groupby memory usage when processor has extra
This commit is contained in:
@ -693,6 +693,7 @@ public:
|
||||
}
|
||||
inline void set_in_window_func() { in_window_func_ = true; }
|
||||
inline bool has_distinct() const { return has_distinct_; }
|
||||
inline bool has_extra() const { return has_extra_; }
|
||||
inline bool has_order_by() const { return has_order_by_; }
|
||||
|
||||
RemovalInfo &get_removal_info() { return removal_info_; }
|
||||
|
||||
@ -270,7 +270,7 @@ int ObMergeGroupByOp::init()
|
||||
}
|
||||
LOG_DEBUG("debug distinct exprs", K(ret), K(MY_SPEC.distinct_exprs_.count()));
|
||||
}
|
||||
if (OB_SUCC(ret) && aggr_processor_.has_distinct()) {
|
||||
if (OB_SUCC(ret) && aggr_processor_.has_extra()) {
|
||||
// set group_batch_factor_ to 1 avoid out of memory error
|
||||
group_batch_factor_ = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user