[Bug](topn opt) Fix be crash when enable topn opt with larger thresho… (#18858)

topn opt should be inited when update it
This commit is contained in:
lihangyu
2023-04-21 17:45:00 +08:00
committed by GitHub
parent 5706bef2b3
commit af20b2c95e
9 changed files with 1689 additions and 25 deletions

View File

@ -880,7 +880,7 @@ public class SessionVariable implements Serializable, Writable {
}
// set random 1, 10, 100, 1000, 10000
this.topnOptLimitThreshold = 10 ^ (random.nextInt(5));
this.topnOptLimitThreshold = (int) Math.pow(10, random.nextInt(5));
}
public String printFuzzyVariables() {