[fix](test) Fix wrong split count assertion in test_hive_compress_type_large_data#62361
Merged
yiguolei merged 1 commit intoapache:branch-4.1from Apr 11, 2026
Merged
Conversation
…e_large_data Problem Summary: `test_hive_compress_type_large_data` fails because the second explain block hardcodes `inputSplitNum=16` for `file_split_size=8MB`, but on multi-BE clusters where `parallelExecInstanceNum * backendNum > 16`, count pushdown sets `needSplit=true`, causing files to be split by 8MB and producing 82 splits instead of 16. The first explain block already used dynamic logic to handle this case, but the second block did not. Fix: apply the same dynamic expectedSplitNum logic to both explain blocks.
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates a regression test to avoid hardcoding Hive input split counts that vary depending on cluster parallelism (multi-BE + high parallel_fragment_exec_instance_num), preventing flaky failures in test_hive_compress_type_large_data.
Changes:
- Adds a shared
needSplitflag derived frombackendNumandparallelExecInstanceNum. - Makes both
explainassertions use dynamic expected split counts forfile_split_size=0andfile_split_size=8MB. - Improves inline comments to document the expected split-count scenarios.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
yiguolei
approved these changes
Apr 11, 2026
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
Cherry-pick #62360
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)