This is an automated email from the ASF dual-hosted git repository.
hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5d4f6d73537 [fix](fe-ut) Fix FE-UT RewriteDataFilePlannerTest (#57971)
5d4f6d73537 is described below
commit 5d4f6d73537b26241aaa3448b108b28797f170e2
Author: Socrates <[email protected]>
AuthorDate: Thu Nov 13 14:11:21 2025 +0800
[fix](fe-ut) Fix FE-UT RewriteDataFilePlannerTest (#57971)
---
.../datasource/iceberg/rewrite/RewriteDataFilePlannerTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/datasource/iceberg/rewrite/RewriteDataFilePlannerTest.java
b/fe/fe-core/src/test/java/org/apache/doris/datasource/iceberg/rewrite/RewriteDataFilePlannerTest.java
index 22fa117c807..230a7223d63 100644
---
a/fe/fe-core/src/test/java/org/apache/doris/datasource/iceberg/rewrite/RewriteDataFilePlannerTest.java
+++
b/fe/fe-core/src/test/java/org/apache/doris/datasource/iceberg/rewrite/RewriteDataFilePlannerTest.java
@@ -91,6 +91,12 @@ public class RewriteDataFilePlannerTest {
);
planner = new RewriteDataFilePlanner(defaultParameters);
+
+ // Setup common mocks for table scan chain used by planFileScanTasks()
+ // planFileScanTasks() calls: table.newScan() ->
tableScan.ignoreResiduals() -> tableScan.planFiles()
+ // Also handles: table.currentSnapshot() and tableScan.useSnapshot()
if snapshot exists
+ Mockito.when(mockTable.currentSnapshot()).thenReturn(null);
+
Mockito.when(mockTableScan.ignoreResiduals()).thenReturn(mockTableScan);
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]