abmo-x commented on code in PR #6779: URL: https://github.com/apache/iceberg/pull/6779#discussion_r1110344812
########## spark/v3.2/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestAddFilesProcedure.java: ########## @@ -911,6 +935,14 @@ public void testPartitionedImportFromEmptyPartitionDoesNotThrow() { new StructField("ts", DataTypes.DateType, true, Metadata.empty()) }; + private static final StructField[] dateHourStruct = { + new StructField("id", DataTypes.IntegerType, true, Metadata.empty()), + new StructField("name", DataTypes.StringType, true, Metadata.empty()), + new StructField("dept", DataTypes.StringType, true, Metadata.empty()), + new StructField("ts", DataTypes.DateType, true, Metadata.empty()), + new StructField("hour", DataTypes.StringType, true, Metadata.empty()) Review Comment: I wanted to reproduce the failure with date/hour, even if I use dept I will still have to keep some of the code for creating table with different partition. will keep it as is for readability and to have the reproducible test which is relatable with date/hour -- 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