github-actions[bot] commented on code in PR #33165: URL: https://github.com/apache/doris/pull/33165#discussion_r1549106192
########## be/src/vec/sink/load_stream_stub_pool.h: ########## @@ -45,6 +45,7 @@ #include <unordered_set> #include <utility> #include <vector> +#include <functional> Review Comment: warning: duplicate include [readability-duplicate-include] be/src/vec/sink/load_stream_stub_pool.h:46: ```diff - #include <vector> - #include <functional> + #include <vector> ``` ########## be/src/vec/sink/writer/vtablet_writer_v2.cpp: ########## @@ -255,23 +255,21 @@ Status VTabletWriterV2::open(RuntimeState* state, RuntimeProfile* profile) { SCOPED_CONSUME_MEM_TRACKER(_mem_tracker.get()); RETURN_IF_ERROR(_build_tablet_node_mapping()); - RETURN_IF_ERROR(_open_streams(_backend_id)); + RETURN_IF_ERROR(_open_streams()); RETURN_IF_ERROR(_init_row_distribution()); return Status::OK(); } -Status VTabletWriterV2::_open_streams(int64_t src_id) { +Status VTabletWriterV2::_open_streams() { Review Comment: warning: method '_open_streams' can be made static [readability-convert-member-functions-to-static] be/src/vec/sink/writer/vtablet_writer_v2.h:123: ```diff - Status _open_streams(); + static Status _open_streams(); ``` -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org