rdblue commented on a change in pull request #922:
URL: https://github.com/apache/iceberg/pull/922#discussion_r449921205



##########
File path: api/src/test/java/org/apache/iceberg/TestPartitionSpecValidation.java
##########
@@ -38,6 +38,9 @@
   public void testMultipleTimestampPartitions() {
     AssertHelpers.assertThrows("Should not allow year(ts) and year(ts)",
         IllegalArgumentException.class, "Cannot use partition name more than 
once",
+        () -> PartitionSpec.builderFor(SCHEMA).year("ts", 
"year").year("another_ts", "year").build());

Review comment:
       The context for these checks is incorrect. The problem is not a 
duplicate transform for a field, it is that the name is reused.
   
   Also, these should not be in this test case for multiple timestamp 
partitions. These should be in a test case for duplicate names.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to