Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3285,8 +3285,11 @@ public void initFuzzyModeVariables() {
}
this.runtimeFilterWaitInfinitely = random.nextBoolean();

// set random 1, 10, 100, 1000, 10000
this.topnOptLimitThreshold = (int) Math.pow(10, random.nextInt(5));
// set random 101, 100, 1000, 10000, should be greater than 100, because small limit may lead
// some test case failed, e.g. topN with limit 100 may not hit the LimitAggToTopNAgg rule
// optimization when fuzzy
int randomLimitThreshold = (int) Math.pow(10, random.nextInt(5));
this.topnOptLimitThreshold = randomLimitThreshold <= 100 ? 101 : randomLimitThreshold;

// for spill to disk
if (Config.fuzzy_test_type.equals("p0")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ suite("agg_optimize_when_uniform") {
def plan_6 = sql """explain verbose ${query6_0}"""
logger.info("plan_6 is " + plan_6)

// This line of code is modified to position the occasional error: "null value is not in not null slot".
def query_mv6 = sql """select sum(__bin_4 is null) from mv6_0"""
logger.info("query_mv6 is " + query_mv6)

order_qt_query6_0_after "${query6_0}"
sql """ DROP MATERIALIZED VIEW IF EXISTS mv6_0"""

Expand Down