aokolnychyi commented on code in PR #6371: URL: https://github.com/apache/iceberg/pull/6371#discussion_r1041626586
########## spark/v3.3/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestAlterTablePartitionFields.java: ########## @@ -404,15 +404,15 @@ public void testSparkTableAddDropPartitions() throws Exception { assertPartitioningEquals(sparkTable(), 1, "bucket(16, id)"); sql("ALTER TABLE %s ADD PARTITION FIELD truncate(data, 4)", tableName); - assertPartitioningEquals(sparkTable(), 2, "truncate(data, 4)"); + assertPartitioningEquals(sparkTable(), 2, "truncate(4, data)"); Review Comment: I had to change `Spark3Util.toTransforms` to match `TruncateFunction`, which expects the width first. -- 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