Skip to content

Commit db2422e

Browse files
committed
[test](fe) Opt the existing LOCAL sink fixture into admission
### What problem does this PR solve? Issue Number: N/A Related PR: #69593 Problem Summary: The existing positive LOCAL sink binding test reaches the new default-off gate before checking duplicate output positions. Save and enable the flag in fixture setup and restore it in teardown. Preserve the original LOCAL target, ROOT context and ExprId assertions. ### Release note None ### Check List (For Author) - Test: Changed-file Checkstyle and diff checks passed. Unit tests were not executed locally. - Behavior changed: No production behavior change; existing test fixture opts in explicitly. - Does this need documentation: No.
1 parent 7221734 commit db2422e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎fe/fe-core/src/test/java/org/apache/doris/nereids/rules/analysis/BindTVFTableSinkTest.java‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.apache.doris.nereids.rules.analysis;
1919

20+
import org.apache.doris.common.Config;
2021
import org.apache.doris.nereids.parser.NereidsParser;
2122
import org.apache.doris.nereids.trees.expressions.NamedExpression;
2223
import org.apache.doris.nereids.trees.plans.Plan;
@@ -27,12 +28,26 @@
2728
import org.apache.doris.nereids.util.PlanChecker;
2829
import org.apache.doris.qe.ConnectContext;
2930

31+
import org.junit.jupiter.api.AfterEach;
3032
import org.junit.jupiter.api.Assertions;
33+
import org.junit.jupiter.api.BeforeEach;
3134
import org.junit.jupiter.api.Test;
3235

3336
import java.util.List;
3437

3538
class BindTVFTableSinkTest {
39+
private boolean originalEnableLocalTvf;
40+
41+
@BeforeEach
42+
void setUp() {
43+
originalEnableLocalTvf = Config.enable_local_tvf;
44+
Config.enable_local_tvf = true;
45+
}
46+
47+
@AfterEach
48+
void tearDown() {
49+
Config.enable_local_tvf = originalEnableLocalTvf;
50+
}
3651

3752
@Test
3853
void duplicateOutputNamesKeepDistinctPositions() {

0 commit comments

Comments
 (0)