Skip to content
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

[Enhancement] Scale Backends for connector sink when writing static partition tables #41564

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
test
Signed-off-by: Jiao Mingye <mxdzs0612@gmail.com>
  • Loading branch information
mxdzs0612 committed Mar 7, 2024
commit fb6090ff91c277e8fdab7f9c324f125ef6b338f1
3 changes: 3 additions & 0 deletions be/src/exec/pipeline/exchange/exchange_sink_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ class ExchangeSinkOperator final : public Operator {
// Return the physical bytes of attachment.
int64_t construct_brpc_attachment(const PTransmitChunkParamsPtr& _chunk_request, butil::IOBuf& attachment);

// For UT Only
TPartitionType::type get_part_type() { return _part_type; }

private:
bool _is_large_chunk(size_t sz) const {
// ref olap_scan_node.cpp release_large_columns
Expand Down
2 changes: 2 additions & 0 deletions be/test/exec/pipeline/exchange_sink_operator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ TEST_F(ExchangeSinkOperatorTest, test_push_random_scale) {
exchange_sink_operator_factory->set_runtime_state(_runtime_state);
auto exchange_sink_operator =
std::static_pointer_cast<ExchangeSinkOperator>(exchange_sink_operator_factory->create(1, 0));
ASSERT_EQ(exchange_sink_operator->get_part_type(), TPartitionType::RANDOM_SCALE);

auto chunk = std::make_shared<Chunk>();
EXPECT_OK(exchange_sink_operator->push_chunk(_runtime_state, chunk));
}
Expand Down