Skip to content

Commit 8fd3bec

Browse files
dengfangyuanclaude
andcommitted
[fix](paimon) adapt the 4.2 porting fallout
- Paimon 2.1 turned SchemaManager into an interface; the connector test moves to the FileSystemSchemaManager default implementation. - The LogicalFileScan conflict resolution missed a blank line between constructors (checkstyle). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent 9fb7587 commit 8fd3bec

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎fe/be-java-extensions/paimon-connector/src/test/java/org/apache/doris/paimon/PaimonArrowBatchAdapterTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import org.apache.paimon.data.variant.GenericVariant;
4242
import org.apache.paimon.data.variant.Variant;
4343
import org.apache.paimon.fs.local.LocalFileIO;
44-
import org.apache.paimon.schema.SchemaManager;
44+
import org.apache.paimon.schema.FileSystemSchemaManager;
4545
import org.apache.paimon.table.FileStoreTableFactory;
4646
import org.apache.paimon.table.Table;
4747
import org.apache.paimon.table.sink.BatchTableCommit;
@@ -289,7 +289,7 @@ public void testPrecisionSevenAndEightKeysRoundTrip(@TempDir Path dir)
289289
.column("ts", DataTypes.TIMESTAMP(precision).notNull())
290290
.column("detail", DataTypes.ROW(DataTypes.FIELD(0, "t", DataTypes.TIMESTAMP(precision))))
291291
.primaryKey("ts").option("bucket", "1").option("file.format", format).build();
292-
new SchemaManager(fileIO, path).createTable(schema);
292+
new FileSystemSchemaManager(fileIO, path).createTable(schema);
293293
Table table = FileStoreTableFactory.create(fileIO, path);
294294
PaimonWriteSchema writeSchema = PaimonWriteSchema.create(table.rowType(), new String[] {"ts", "detail"});
295295
BatchWriteBuilder builder = table.newBatchWriteBuilder();

‎fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalFileScan.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ protected LogicalFileScan(RelationId id, ExternalTable table, List<String> quali
150150
this.relationSnapshot = relationSnapshot;
151151
this.annTopN = annTopN;
152152
}
153+
153154
/**
154155
* Constructor for LogicalFileScan, kept for subclasses that were not updated with a table alias.
155156
*/

0 commit comments

Comments
 (0)