You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Yukang-Lian (via GitHub)" <gi...@apache.org> on 2024/03/17 16:07:36 UTC
[PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Yukang-Lian opened a new pull request, #32355:
URL: https://github.com/apache/doris/pull/32355
## Proposed changes
Issue Number: close #xxx
<!--Describe your changes.-->
Add bvar for bloom filter and segment.
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2003128326
TeamCity be ut coverage result:
Function Coverage: 35.25% (8701/24683)
Line Coverage: 27.09% (71207/262901)
Region Coverage: 26.33% (36932/140247)
Branch Coverage: 23.25% (18893/81256)
Coverage Report: http://coverage.selectdb-in.cc/coverage/73c37a5d19f17521211953db1c1a4d6784c0bde5_73c37a5d19f17521211953db1c1a4d6784c0bde5/report/index.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #32355:
URL: https://github.com/apache/doris/pull/32355#discussion_r1527554650
##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -55,12 +64,23 @@
static Status create(BloomFilterAlgorithmPB algorithm, std::unique_ptr<BloomFilter>* bf,
size_t bf_size = 0);
- BloomFilter() : _data(nullptr), _num_bytes(0), _size(0), _has_null(nullptr) {}
+ BloomFilter() : _data(nullptr), _num_bytes(0), _size(0), _has_null(nullptr) {
Review Comment:
warning: member initializer for '_has_null' is redundant [modernize-use-default-member-init]
```suggestion
BloomFilter() : _data(nullptr), _num_bytes(0), _size(0), {
```
##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -55,12 +64,23 @@
static Status create(BloomFilterAlgorithmPB algorithm, std::unique_ptr<BloomFilter>* bf,
size_t bf_size = 0);
- BloomFilter() : _data(nullptr), _num_bytes(0), _size(0), _has_null(nullptr) {}
+ BloomFilter() : _data(nullptr), _num_bytes(0), _size(0), _has_null(nullptr) {
Review Comment:
warning: member initializer for '_data' is redundant [modernize-use-default-member-init]
```suggestion
BloomFilter() : , _num_bytes(0), _size(0), _has_null(nullptr) {
```
##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -17,6 +17,7 @@
#pragma once
+#include <bvar/reducer.h>
Review Comment:
warning: 'bvar/reducer.h' file not found [clang-diagnostic-error]
```cpp
#include <bvar/reducer.h>
^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "Yukang-Lian (via GitHub)" <gi...@apache.org>.
Yukang-Lian commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2009084899
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "Yukang-Lian (via GitHub)" <gi...@apache.org>.
Yukang-Lian commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2003311379
run performance
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #32355:
URL: https://github.com/apache/doris/pull/32355#discussion_r1531725624
##########
be/src/olap/rowset/segment_v2/bloom_filter_index_writer.h:
##########
@@ -76,7 +76,14 @@ class PrimaryKeyBloomFilterIndexWriterImpl : public BloomFilterIndexWriter {
_has_null(false),
_bf_buffer_size(0) {}
- ~PrimaryKeyBloomFilterIndexWriterImpl() override = default;
+ ~PrimaryKeyBloomFilterIndexWriterImpl() override {
Review Comment:
warning: use '= default' to define a trivial destructor [modernize-use-equals-default]
```cpp
~PrimaryKeyBloomFilterIndexWriterImpl() override {
^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2002524738
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring merged PR #32355:
URL: https://github.com/apache/doris/pull/32355
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2010025762
TeamCity be ut coverage result:
Function Coverage: 35.27% (8728/24747)
Line Coverage: 27.09% (71458/263806)
Region Coverage: 26.33% (37071/140820)
Branch Coverage: 23.23% (18953/81590)
Coverage Report: http://coverage.selectdb-in.cc/coverage/e8c2eef5874f5a858d189adc563856073061e763_e8c2eef5874f5a858d189adc563856073061e763/report/index.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "Yukang-Lian (via GitHub)" <gi...@apache.org>.
Yukang-Lian commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2003070503
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "zhannngchen (via GitHub)" <gi...@apache.org>.
zhannngchen commented on code in PR #32355:
URL: https://github.com/apache/doris/pull/32355#discussion_r1528327825
##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -181,6 +208,8 @@ class BloomFilter {
uint32_t _size;
// last byte's pointer in data for null flag
bool* _has_null = nullptr;
+ // is this bf used for write
Review Comment:
The variable is only used for debugging, you should declear it in comment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "Yukang-Lian (via GitHub)" <gi...@apache.org>.
Yukang-Lian commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2002524773
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2011080082
PR approved by at least one committer and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "zhannngchen (via GitHub)" <gi...@apache.org>.
zhannngchen commented on code in PR #32355:
URL: https://github.com/apache/doris/pull/32355#discussion_r1528331603
##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -31,6 +32,14 @@
namespace doris {
namespace segment_v2 {
+inline bvar::Adder<size_t> g_total_bloom_filter_num("doris_total_bloom_filter_num");
Review Comment:
pls also add a bvar to record the bloomfilter created by pk index
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2011080114
PR approved by anyone and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "Yukang-Lian (via GitHub)" <gi...@apache.org>.
Yukang-Lian commented on PR #32355:
URL: https://github.com/apache/doris/pull/32355#issuecomment-2009925748
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Enhancement](bvar) Add bvar for bloom filter and segment [doris]
Posted by "zhannngchen (via GitHub)" <gi...@apache.org>.
zhannngchen commented on code in PR #32355:
URL: https://github.com/apache/doris/pull/32355#discussion_r1528331603
##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -31,6 +32,14 @@
namespace doris {
namespace segment_v2 {
+inline bvar::Adder<size_t> g_total_bloom_filter_num("doris_total_bloom_filter_num");
Review Comment:
plz also add a bvar to record the bloomfilter created by pk index
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org