ajantha-bhat commented on code in PR #13329: URL: https://github.com/apache/iceberg/pull/13329#discussion_r2152834762
########## parquet/src/test/java/org/apache/iceberg/TestParquetPartitionStatsHandler.java: ########## @@ -18,9 +18,36 @@ */ package org.apache.iceberg; +import static org.assertj.core.api.Assertions.assertThatThrownBy; + +import org.apache.iceberg.io.CloseableIterable; +import org.apache.iceberg.relocated.com.google.common.collect.Lists; +import org.junit.jupiter.api.Test; + public class TestParquetPartitionStatsHandler extends PartitionStatsHandlerTestBase { public FileFormat format() { return FileFormat.PARQUET; } + + @Test + public void testReadingStatsWithInvalidSchema() throws Exception { + Table testTable = + TestTables.create(tempDir("old_schema"), "old_schema", SCHEMA, SPEC, 2, fileFormatProperty); + Schema schema = PartitionStatsHandler.schema(Partitioning.partitionType(testTable)); + + String invalidSchema = + getClass() + .getClassLoader() + .getResource("org/apache/iceberg/PartitionStatsInvalidSchema.parquet") Review Comment: Found a way to generate stats with old schema with few lines of code and added it instead of binaries. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org