-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature](multi-catalog) Add memory tracker for orc reader/writer and arrow parquet writer。 #37257
[Feature](multi-catalog) Add memory tracker for orc reader/writer and arrow parquet writer。 #37257
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
|
||
#pragma once | ||
|
||
#include "orc/MemoryPool.hh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'orc/MemoryPool.hh' file not found [clang-diagnostic-error]
#include "orc/MemoryPool.hh"
^
#endif // #if defined(USE_JEMALLOC) && defined(USE_MEM_TRACKER) | ||
} | ||
|
||
void free(char* p) override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: pointer parameter 'p' can be pointer to const [readability-non-const-parameter]
void free(char* p) override { | |
void free(const char* p) override { |
@@ -122,7 +123,12 @@ VOrcTransformer::VOrcTransformer(RuntimeState* state, doris::io::FileWriter* fil | |||
set_compression_type(compress_type); | |||
} | |||
|
|||
VOrcTransformer::~VOrcTransformer() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use '= default' to define a trivial destructor [modernize-use-equals-default]
VOrcTransformer::~VOrcTransformer() {
^
@@ -84,7 +84,7 @@ class VOrcTransformer final : public VFileFormatTransformer { | |||
TFileCompressType::type compression, | |||
const iceberg::Schema* iceberg_schema = nullptr); | |||
|
|||
~VOrcTransformer() = default; | |||
~VOrcTransformer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: annotate this function with 'override' or (rarely) 'final' [modernize-use-override]
~VOrcTransformer(); | |
~VOrcTransformer() override; |
cf824f8
to
9d35789
Compare
run buildall |
TeamCity be ut coverage result: |
9d35789
to
bb95ae7
Compare
run buildall |
TeamCity be ut coverage result: |
bb95ae7
to
4ebdd75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
run buildall |
37921e7
to
7df36ce
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
7df36ce
to
fa2511b
Compare
run buildall |
fa2511b
to
a879062
Compare
run buildall |
TeamCity be ut coverage result: |
a879062
to
8d619bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
8d619bf
to
78d16de
Compare
run buildall |
78d16de
to
9b362e4
Compare
run buildall |
9b362e4
to
ed40639
Compare
run buildall |
TeamCity be ut coverage result: |
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
return arrow::Status::OK(); | ||
} | ||
|
||
void ArrowAllocator::deallocate_aligned(uint8_t* ptr, int64_t size, int64_t alignment) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: pointer parameter 'ptr' can be pointer to const [readability-non-const-parameter]
void ArrowAllocator::deallocate_aligned(uint8_t* ptr, int64_t size, int64_t alignment) { | |
void ArrowAllocator::deallocate_aligned(const uint8_t* ptr, int64_t size, int64_t alignment) { |
be/src/vec/exec/format/parquet/arrow_memory_pool.h:47:
- void deallocate_aligned(uint8_t* ptr, int64_t size, int64_t alignment);
+ void deallocate_aligned(const uint8_t* ptr, int64_t size, int64_t alignment);
64a4a7e
to
bf1a1a9
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
TeamCity be ut coverage result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
bf1a1a9
to
8f3272d
Compare
run buildall |
TeamCity be ut coverage result: |
8f3272d
to
d746ddc
Compare
run buildall |
TeamCity be ut coverage result: |
Proposed changes
backport #37234