Aleksandr Efimov has uploaded this change for review. ( https://gerrit.cloudera.org/25482
Change subject: IMPALA-15326: Adapt merging exchange batches ...................................................................... IMPALA-15326: Adapt merging exchange batches Reduce unpartitioned sender batches for merging exchanges with small LIMIT/OFFSET. Choose the cap using the required row count, sender count and buffer allocation rounding. Preserve the full OFFSET + LIMIT budget for every sender: all required rows may come from one sender. Send additional batches as needed. Use the same cap for sender and receiver memory estimates. Add ENABLE_MERGING_EXCHANGE_BATCHING as a development query option, disabled by default. Testing: - ExchangeNodeTest and DataStreamSinkTest: 22 tests passed. - query-options-test (16 tests) and data-stream-test (11 tests) passed. - Four full-EOS SQL variants passed, including 32 senders with all 6000 input rows coming from one sender. Known baseline issue: early LIMIT cancellation can leave sender profiles incomplete. Full-EOS tests verify sender codegen separately. https://issues.apache.org/jira/browse/IMPALA-15834 Change-Id: I703774c13a96e8416672a2d4f4cdb8ba901adf42 Assisted-by: gpt-6.1-sol (Codex) --- M be/src/runtime/data-stream-test.cc M be/src/runtime/krpc-data-stream-sender.cc M be/src/runtime/krpc-data-stream-sender.h M be/src/service/query-options-test.cc M be/src/service/query-options.cc M be/src/service/query-options.h M common/thrift/DataSinks.thrift M common/thrift/ImpalaService.thrift M common/thrift/Query.thrift M fe/src/main/java/org/apache/impala/planner/DataStreamSink.java M fe/src/main/java/org/apache/impala/planner/ExchangeNode.java A fe/src/test/java/org/apache/impala/planner/DataStreamSinkTest.java 12 files changed, 407 insertions(+), 17 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/82/25482/1 -- To view, visit https://gerrit.cloudera.org/25482 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I703774c13a96e8416672a2d4f4cdb8ba901adf42 Gerrit-Change-Number: 25482 Gerrit-PatchSet: 1 Gerrit-Owner: Aleksandr Efimov <[email protected]>
