JFinis opened a new issue, #9716: URL: https://github.com/apache/iceberg/issues/9716
### Apache Iceberg version 1.4.3 (latest release) ### Query engine Spark ### Please describe the bug 🐞 This bug is related to https://github.com/apache/iceberg/issues/9715, but it triggers yet another error and is actually more severe. It turns out that it is not possible to use a bigint as truncate width in SparkSQL. It will error out with `java.lang.IllegalArgumentException: Unsupported width for transform: truncate(x, 1000000000000)` However, the code definitly looks as if it should support such long widths (larger than int, but fitting into long), it just seems to go into the wrong path, treating the literal as int instead of long. The grammar does not allow to cast the literal to bigint or do oether shenaningans to help the code recognize the literal as a long instead of an int. Repro: ``` CREATE TABLE foobar (x bigint) PARTITIONED BY(truncate(x,1000000000000)) TBLPROPERTIES(`format-version`=2); ``` -- 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