Guosmilesmile commented on code in PR #16575:
URL: https://github.com/apache/iceberg/pull/16575#discussion_r3315534952
##########
data/src/test/java/org/apache/iceberg/data/BaseFormatModelTests.java:
##########
@@ -197,51 +199,9 @@ void after() {
void testDataWriterEngineWriteGenericRead(FileFormat fileFormat,
DataGenerator dataGenerator)
throws IOException {
Schema schema = dataGenerator.schema();
- FileWriterBuilder<DataWriter<T>, Object> writerBuilder =
- FormatModelRegistry.dataWriteBuilder(fileFormat, engineType(),
encryptedFile);
-
- DataWriter<T> writer =
writerBuilder.schema(schema).spec(PartitionSpec.unpartitioned()).build();
-
List<Record> genericRecords = dataGenerator.generateRecords();
List<T> engineRecords = convertToEngineRecords(genericRecords, schema);
-
- try (writer) {
- engineRecords.forEach(writer::write);
- }
-
- DataFile dataFile = writer.toDataFile();
-
- assertThat(dataFile).isNotNull();
- assertThat(dataFile.recordCount()).isEqualTo(engineRecords.size());
- assertThat(dataFile.format()).isEqualTo(fileFormat);
-
- readAndAssertGenericRecords(fileFormat, schema, genericRecords);
- }
-
- /** Write with engine type T without explicit engineSchema, read with
Generic Record */
- @ParameterizedTest
- @FieldSource("FORMAT_AND_GENERATOR")
- void testDataWriterEngineWriteWithoutEngineSchema(
Review Comment:
Revert this change. I will raise a new pr to fix this when this pr is merge.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]