[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:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user