ammarchalifah commented on PR #16424:
URL: https://github.com/apache/iceberg/pull/16424#issuecomment-4558483617
Example of my spec from Iceberg metadata
```
{"spec-id":5,"fields":[{"name":"collected_date","transform":"identity","source-id":42,"field-id":1000},{"name":"user_id_bucket_32","transform":"bucket[32]","source-id":1,"field-id":1001},{"name":"category_id_bucket_32","transform":"bucket[32]","source-id":3,"field-id":1004}]}]
```
Error message (AWS Glue catalog, EMR 8.0.0, Spark 4.0.2)
```
2026-05-19 07:57:00,385 - table-raw-processor - INFO - Executing SPJ MERGE
INTO:
MERGE INTO glue_catalog.`db`.`table` AS t
USING glue_catalog.`temp-db`.`tmp_table` AS s
ON t.user_id = s.user_id AND t.category_id = s.category_id
WHEN MATCHED AND (t.collected_at IS NULL OR t.collected_at <=
s.collected_at)
THEN UPDATE SET *
WHEN NOT MATCHED
THEN INSERT *
2026-05-19 07:57:41,230 -table-raw-processor - ERROR - Error: Wrong class,
expected java.lang.CharSequence, but was java.lang.Integer, for object: 2
Traceback (most recent call last):
...
File
"/mnt1/yarn/usercache/hadoop/appcache/application_1779177216710_0001/container_1779177216710_0001_01_000001/pyspark.zip/pyspark/sql/session.py",
line 1810, in sql
File
"/mnt1/yarn/usercache/hadoop/appcache/application_1779177216710_0001/container_1779177216710_0001_01_000001/py4j-0.10.9.9-src.zip/py4j/java_gateway.py",
line 1362, in __call__
File
"/mnt1/yarn/usercache/hadoop/appcache/application_1779177216710_0001/container_1779177216710_0001_01_000001/pyspark.zip/pyspark/errors/exceptions/captured.py",
line 288, in deco
pyspark.errors.exceptions.captured.IllegalArgumentException: Wrong class,
expected java.lang.CharSequence, but was java.lang.Integer, for object: 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]