Bankim Bhavsar has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/14745 )

Change subject: Import Impala's blocked based BloomFilter
......................................................................


Patch Set 2:

(7 comments)

http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/CMakeLists.txt
File src/kudu/util/CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/CMakeLists.txt@246
PS2, Line 246: set_source_files_properties(block_bloom_filter_avx2.cc 
PROPERTIES COMPILE_FLAGS "-mavx2")
> I guess we also use our own version of binutils that has the right support
Done


http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter-test.cc
File src/kudu/util/block_bloom_filter-test.cc:

http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter-test.cc@52
PS2, Line 52:   void BfInsert(const std::shared_ptr<BlockBloomFilter>& bf, 
uint32_t h) {
> Consider adding using statements for this and the other STL usage in this f
Hmm. One of the bots complained about "using" directive. Added now.


http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter-test.cc@96
PS2, Line 96:   srand(0);
> Instead of these calls, consider SeedRandom() from KuduTest, which makes it
Done


http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter.h
File src/kudu/util/block_bloom_filter.h:

http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter.h@18
PS2, Line 18: #ifndef IMPALA_UTIL_BLOOM_H
            : #define IMPALA_UTIL_BLOOM_H
> Replace with #pragma once
Done


http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter.h@39
PS2, Line 39: /// A BloomFilter stores sets of items and offers a query 
operation indicating whether or
> Nit: Kudu style uses double slashes for comments rather than triple slashes
Done


http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter.h@63
PS2, Line 63: class BloomFilterBufferAllocatorIf {
            :  public:
            :   virtual Status AllocateBuffer(size_t bytes, void **ptr) = 0;
            :   virtual void FreeBuffer(void *ptr) = 0;
            : };
            :
            : class DefaultBloomFilterBufferAllocator : public 
BloomFilterBufferAllocatorIf {
            :  public:
            :   // Required for Singleton
            :   DefaultBloomFilterBufferAllocator() = default;
            :
            :   Status AllocateBuffer(size_t bytes, void **ptr) override;
            :   void FreeBuffer(void *ptr) override;
            :
            :   static DefaultBloomFilterBufferAllocator* GetSingleton();
            :  private:
            :   DISALLOW_COPY_AND_ASSIGN(DefaultBloomFilterBufferAllocator);
            : };
> Should these class names also include the word Block?
Done


http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter_avx2.cc
File src/kudu/util/block_bloom_filter_avx2.cc:

http://gerrit.cloudera.org:8080/#/c/14745/2/src/kudu/util/block_bloom_filter_avx2.cc@20
PS2, Line 20: #include <immintrin.h>
> warning: #includes are not sorted properly [llvm-include-order]
Done



--
To view, visit http://gerrit.cloudera.org:8080/14745
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89c54a051c5093cf5fb81481a47a0a6677d7d906
Gerrit-Change-Number: 14745
Gerrit-PatchSet: 2
Gerrit-Owner: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Thomas Tauber-Marshall <[email protected]>
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-Comment-Date: Mon, 25 Nov 2019 21:34:17 +0000
Gerrit-HasComments: Yes

Reply via email to