aokolnychyi commented on code in PR #6371: URL: https://github.com/apache/iceberg/pull/6371#discussion_r1053562414
########## core/src/test/java/org/apache/iceberg/TestPartitioning.java: ########## @@ -354,6 +354,19 @@ public void testGroupingKeyTypeWithEvolvedUnpartitionedSpec() { Assert.assertEquals("Types must match", expectedType, actualType); } + @Test + public void testGroupingKeyTypeWithProjectedSchema() { + TestTables.TestTable table = + TestTables.create(tableDir, "test", SCHEMA, BY_CATEGORY_DATA_SPEC, V1_FORMAT_VERSION); + + Schema projectedSchema = table.schema().select("id", "data"); Review Comment: Correct. Otherwise, we will break Spark because we can report non-projected columns. -- 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