sl255051 opened a new issue, #10668: URL: https://github.com/apache/iceberg/issues/10668
### Apache Iceberg version None ### Query engine None ### Please describe the bug 🐞 PartitionSpec.Builder can only build a partition spec when column names match in a case-sensitive way. I've written a unit test (included below) that reproduces the issue. You can add this unit test to the TestPartitionSpecInfo class. The test fails at `PartitionSpec.builderFor(schema).identity("DATA")` because the schema's column is defined with the name "data" but the builder is looking for "DATA". ``` @TestTemplate public void testSpecInfoPartitionedTableCaseInsensitive() { PartitionSpec spec = PartitionSpec.builderFor(schema).identity("DATA").build(); TestTables.TestTable table = TestTables.create(tableDir, "test", schema, spec, formatVersion); assertThat(table.spec()).isEqualTo(spec); assertThat(table.spec().lastAssignedFieldId()).isEqualTo(spec.lastAssignedFieldId()); assertThat(table.specs()) .containsExactly(entry(spec.specId(), spec)) .doesNotContainKey(Integer.MAX_VALUE); } ``` -- 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.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