[opt](Nereids): disable PRUNE_EMPTY_PARTITION rule in SqlTestBase.java #38246 (#38455)

## Proposed changes

#38246

Co-authored-by: zclllhhjj <zhaochangle@selectdb.com>
This commit is contained in:
谢健
2024-07-31 14:34:35 +08:00
committed by GitHub
parent 3b234cfab6
commit e26f2441bd
2 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public class JoinOrderJobTest extends SqlTestBase {
@Disabled
@Test
void test64CliqueJoin() {
connectContext.getSessionVariable().joinReorderTimeLimit = 10000000;
HyperGraphBuilder hyperGraphBuilder = new HyperGraphBuilder(Sets.newHashSet(JoinType.INNER_JOIN));
Plan plan = hyperGraphBuilder
.randomBuildPlanWith(64, 64 * 63 / 2);

View File

@ -97,6 +97,7 @@ public abstract class SqlTestBase extends TestWithFeService implements MemoPatte
@Override
protected void runBeforeEach() throws Exception {
StatementScopeIdGenerator.clear();
connectContext.getSessionVariable().setDisableNereidsRules("PRUNE_EMPTY_PARTITION");
}
protected LogicalCompatibilityContext constructContext(Plan p1, Plan p2, CascadesContext context) {