apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.36k stars 930 forks source link

[Bug] java.lang.ClassCastException: org.apache.paimon.spark.SparkInternalRow cannot be cast to org.apache.spark.sql.catalyst.expressions.UnsafeRow #3977

Open gnailJC opened 1 month ago

gnailJC commented 1 month ago

Search before asking

Paimon version

0.7

Compute Engine

spark 3.1.2 - 2.12

Minimal reproduce step

`24/08/16 10:58:18 WARN TaskSetManager: Lost task 4.0 in stage 6.0 (TID 584) (emr-worker-41874.cluster-215453 executor 10): java.lang.ClassCastException: org.apache.paimon.spark.SparkInternalRow cannot be cast to org.apache.spark.sql.catalyst.expressions.UnsafeRow at org.apache.spark.sql.execution.UnsafeRowSerializerInstance$$anon$1.writeValue(UnsafeRowSerializer.scala:64) at org.apache.spark.storage.DiskBlockObjectWriter.write(DiskBlockObjectWriter.scala:249) at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:158) at org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:59) at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:99) at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:52) at org.apache.spark.scheduler.Task.run(Task.scala:131) at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:497) at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1439) at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:500) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

24/08/16 10:58:20 WARN TaskSetManager: Lost task 21.0 in stage 6.0 (TID 601) (emr-worker-41874.cluster-215453 executor 10): java.lang.ClassCastException `

What doesn't meet your expectations?

Anything else?

No response

Are you willing to submit a PR?

Zouxxyy commented 1 month ago

Can you try to use the latest 0.8.2, or provide the steps to reproduce the problem~