Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trueeyu committed Sep 9, 2021
1 parent 86c906d commit b56d88c
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions be/src/column/array_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ class ArrayColumn final : public ColumnFactory<Column, ArrayColumn> {

std::string debug_string() const override;

bool exceed_capacity_limit() const override {
return _elements->exceed_capacity_limit() || _offsets->exceed_capacity_limit();
bool reach_capacity_limit() const override {
return _elements->reach_capacity_limit() || _offsets->reach_capacity_limit();
}

private:
Expand Down
2 changes: 1 addition & 1 deletion be/src/column/binary_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class BinaryColumn final : public ColumnFactory<Column, BinaryColumn> {
return ss.str();
}

bool exceed_capacity_limit() const override {
bool reach_capacity_limit() const override {
return _bytes.size() >= UINT32_MAX || _offsets.size() >= UINT32_MAX || _slices.size() >= UINT32_MAX;
}

Expand Down
4 changes: 2 additions & 2 deletions be/src/column/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ class Chunk {

std::string debug_row(uint32_t index) const;

bool exceed_capacity_limit() const {
bool reach_capacity_limit() const {
for (const auto& column : _columns) {
if (column->exceed_capacity_limit()) {
if (column->reach_capacity_limit()) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion be/src/column/column.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class Column {

virtual void reset_column() { _delete_state = DEL_NOT_SATISFIED; }

virtual bool exceed_capacity_limit() const = 0;
virtual bool reach_capacity_limit() const = 0;

protected:
DelCondSatisfied _delete_state = DEL_NOT_SATISFIED;
Expand Down
2 changes: 1 addition & 1 deletion be/src/column/const_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class ConstColumn final : public ColumnFactory<Column, ConstColumn> {
return ss.str();
}

bool exceed_capacity_limit() const override { return _data->exceed_capacity_limit(); }
bool reach_capacity_limit() const override { return _data->reach_capacity_limit(); }

private:
ColumnPtr _data;
Expand Down
2 changes: 1 addition & 1 deletion be/src/column/fixed_length_column_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class FixedLengthColumnBase : public ColumnFactory<Column, FixedLengthColumnBase
_data.clear();
}

bool exceed_capacity_limit() const override {
bool reach_capacity_limit() const override {
return _data.size() >= UINT32_MAX;
}

Expand Down
4 changes: 2 additions & 2 deletions be/src/column/nullable_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ class NullableColumn final : public ColumnFactory<Column, NullableColumn> {
return ss.str();
}

bool exceed_capacity_limit() const override {
return _data_column->exceed_capacity_limit() || _null_column->exceed_capacity_limit();
bool reach_capacity_limit() const override {
return _data_column->reach_capacity_limit() || _null_column->reach_capacity_limit();
}

private:
Expand Down
2 changes: 1 addition & 1 deletion be/src/column/object_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ObjectColumn final : public ColumnFactory<Column, ObjectColumn<T>> {
return ss.str();
}

bool exceed_capacity_limit() const override {
bool reach_capacity_limit() const override {
return _pool.size() >= UINT32_MAX || _cache.size() >= UINT32_MAX || _slices.size() >= UINT32_MAX ||
_buffer.size() >= UINT32_MAX;
}
Expand Down
2 changes: 1 addition & 1 deletion be/src/exec/vectorized/hash_join_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ Status HashJoinNode::_build(RuntimeState* state) {
// which will cause the output of wrong data.
// Currently, a defense needs to be added.
// After a better solution is available, the BigChunk mechanism can be removed.
if (_ht.get_build_chunk()->exceed_capacity_limit()) {
if (_ht.get_build_chunk()->reach_capacity_limit()) {
return Status::InternalError("Total size of single column exceed the limit of hash join");
}

Expand Down

0 comments on commit b56d88c

Please sign in to comment.