You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: org.apache.comet.CometNativeException: range end index 8221 out of range for slice of length 8192 #498
It looks like we may have a hard-coded assumption in shuffle where we cannot process an incoming batch that is larger than the default batch size.
I have seen this error more than once but currently have a repro so will document this more as I investigate.
org.apache.comet.CometNativeException: range end index 8221 out of range for slice of length 8192
...
at org.apache.comet.Native.executePlan(Native Method)
at org.apache.comet.CometExecIterator.executeNative(CometExecIterator.scala:72)
at org.apache.comet.CometExecIterator.getNextBatch(CometExecIterator.scala:129)
at org.apache.comet.CometExecIterator.hasNext(CometExecIterator.scala:144)
at org.apache.spark.sql.comet.execution.shuffle.CometShuffleWriteProcessor.write(CometShuffleExchangeExec.scala:492)
at org.apache.spark.sql.comet.shims.ShimCometShuffleWriteProcessor.write(ShimCometShuffleWriteProcessor.scala:35)
at org.apache.spark.sql.comet.shims.ShimCometShuffleWriteProcessor.write$(ShimCometShuffleWriteProcessor.scala:28)
at org.apache.spark.sql.comet.execution.shuffle.CometShuffleWriteProcessor.write(CometShuffleExchangeExec.scala:448)
Activity
viirya commentedon Jun 5, 2024
I don't see this before. If there is reproducible example for this, it will be easier to debug.
viirya commentedon Jun 5, 2024
Ah, I probably found where it goes wrong.
chore: bring in latest OSS comet changes (apache#498)