steFaiz commented on code in PR #6647:
URL: https://github.com/apache/paimon/pull/6647#discussion_r2556032652
##########
paimon-core/src/test/java/org/apache/paimon/table/DataEvolutionTableTest.java:
##########
@@ -796,7 +827,6 @@ public void testGlobalIndex() throws Exception {
table.rowType().project("f1")));
RecordReader<InternalRow> reader =
readBuilder.newRead().createReader(readBuilder.newScan().plan());
-
Assertions.assertThat(reader).isInstanceOf(DataEvolutionFileReader.class);
Review Comment:
remove this assertion because in
https://github.com/apache/paimon/blob/74cf00b981917f327fc5bb9d3682ce7bf1d9b62b/paimon-core/src/main/java/org/apache/paimon/operation/DataEvolutionSplitRead.java#L157
we will only create a UnionReader if we have more than one file to read.
However in this scenery, only one column is projected and we only need to read
one File, so the created reader is just a FileReader.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]