This is an automated email from the ASF dual-hosted git repository.
mrhhsg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5e94158f309 [chore](test) Only fuzzy spill variables in P0 tests
(#56554)
5e94158f309 is described below
commit 5e94158f3097e074f39806661c75d1f60ac509db
Author: Jerry Hu <[email protected]>
AuthorDate: Tue Sep 30 10:28:47 2025 +0800
[chore](test) Only fuzzy spill variables in P0 tests (#56554)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../java/org/apache/doris/qe/SessionVariable.java | 40 ++++++++++++----------
1 file changed, 21 insertions(+), 19 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index a5f33fc88b9..7712b4fc2de 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -3123,26 +3123,28 @@ public class SessionVariable implements Serializable,
Writable {
this.topnOptLimitThreshold = (int) Math.pow(10, random.nextInt(5));
// for spill to disk
- switch (randomInt % 4) {
- case 0:
- this.spillMinRevocableMem = 0;
- break;
- case 1:
- this.spillMinRevocableMem = 1;
- break;
- case 2:
- this.spillMinRevocableMem = 1024 * 1024;
- break;
- case 3:
- default:
- this.spillMinRevocableMem = 100L * 1024 * 1024;
- break;
- }
+ if (Config.fuzzy_test_type.equals("p0")) {
+ switch (randomInt % 4) {
+ case 0:
+ this.spillMinRevocableMem = 0;
+ break;
+ case 1:
+ this.spillMinRevocableMem = 1;
+ break;
+ case 2:
+ this.spillMinRevocableMem = 1024 * 1024;
+ break;
+ case 3:
+ default:
+ this.spillMinRevocableMem = 100L * 1024 * 1024;
+ break;
+ }
- randomInt = random.nextInt(99);
- this.enableSpill = randomInt % 4 != 0;
- this.enableForceSpill = randomInt % 3 == 0;
- this.enableReserveMemory = randomInt % 5 != 0;
+ randomInt = random.nextInt(99);
+ this.enableSpill = randomInt % 4 != 0;
+ this.enableForceSpill = randomInt % 3 == 0;
+ this.enableReserveMemory = randomInt % 5 != 0;
+ }
// random pre materialized view rewrite strategy
randomInt = random.nextInt(3);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]