ulysses-you opened a new pull request, #5961:
URL: https://github.com/apache/incubator-gluten/pull/5961

   ## What changes were proposed in this pull request?
   
   The query would fail if the shuffle partition > 1:
   ```
   spark.sql("select c1 , null as c2 from t1").repartition($"c1').collect
   ```
   
   
   ```
   Caused by: java.lang.RuntimeException: Error during calling Java code from 
native code: 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget$OutOfMemoryException: 
Not enough spark off-heap execution memory. Acquired: 127.4 TiB, granted: 864.0 
MiB. Try tweaking config option spark.memory.offHeap.size to get larger space 
to run this application (if spark.gluten.memory.dynamic.offHeap.sizing.enabled 
is not enabled).
   Current config settings:
        spark.gluten.memory.offHeap.size.in.bytes=1024.0 MiB
        spark.gluten.memory.task.offHeap.size.in.bytes=102.4 MiB
        spark.gluten.memory.conservative.task.offHeap.size.in.bytes=51.2 MiB
        spark.memory.offHeap.enabled=true
        spark.gluten.memory.dynamic.offHeap.sizing.enabled=false
   Memory consumer stats:
        Task.10:                                      Current used bytes: 160.0 
MiB, peak bytes:        N/A
        \- Gluten.Tree.10:                            Current used bytes: 160.0 
MiB, peak bytes: 1024.0 MiB
           \- root.10:                                Current used bytes: 160.0 
MiB, peak bytes: 1024.0 MiB
              +- ShuffleReader.0:                     Current used bytes: 152.0 
MiB, peak bytes: 1016.0 MiB
              |  \- single:                           Current used bytes: 152.0 
MiB, peak bytes:  160.0 MiB
              |     +- gluten::MemoryAllocator:       Current used bytes: 144.0 
MiB, peak bytes:  144.0 MiB
              |     \- ShuffleReader_root:            Current used bytes:     
0.0 B, peak bytes:      0.0 B
              |        \- ShuffleReader_default_leaf: Current used bytes:     
0.0 B, peak bytes:      0.0 B
              +- ArrowContextInstance.0:              Current used bytes:   8.0 
MiB, peak bytes:    8.0 MiB
              \- OverAcquire.DummyTarget.20:          Current used bytes:     
0.0 B, peak bytes:   48.0 MiB
   
   ```
   
   ## How was this patch tested?
   
   Add test
   


-- 
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]

Reply via email to