Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions be/src/olap/olap_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,11 @@ struct OlapReaderStatistics {
int64_t rows_key_range_filtered = 0;
int64_t rows_stats_filtered = 0;
int64_t rows_bf_filtered = 0;
int64_t rows_del_filtered = 0;
int64_t rows_conditions_filtered = 0;
// Including the number of rows filtered out according to the Delete information in the Tablet,
// and the number of rows filtered for marked deleted rows under the unique key model.
int64_t rows_del_filtered = 0;
// the number of rows filtered by various column indexes.
int64_t rows_conditions_filtered = 0;

int64_t index_load_ns = 0;

Expand Down
3 changes: 2 additions & 1 deletion be/src/olap/rowset/beta_rowset_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class BetaRowsetReader : public RowsetReader {

RowsetSharedPtr rowset() override { return std::dynamic_pointer_cast<Rowset>(_rowset); }

int64_t filtered_rows() override { return _stats->rows_del_filtered; }
// Return the total number of filtered rows, will be used for validation of schema change
int64_t filtered_rows() override { return _stats->rows_del_filtered + _stats->rows_conditions_filtered; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment for this method to notify that this method will be used for validation of schema change task, should be modified carefully.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related comment have been added, I will be familiar with the development process again.


private:
BetaRowsetSharedPtr _rowset;
Expand Down