parthchandra opened a new pull request #24957: [SPARK-27100][SQL] Use `Array` 
instead of `Seq` in `FilePartition` to…
URL: https://github.com/apache/spark/pull/24957
 
 
   … prevent `StackOverflowError `
   
   ShuffleMapTask's partition field is a FilePartition and FilePartition's 
'files' field is a Stream$cons which is essentially a linked list. It is 
therefore serialized recursively.
   If the number of files in each partition is, say, 10000 files, recursing 
into a linked list of length 10000 overflows the stack
   
   The problem is only in Bucketed partitions. The corresponding implementation 
for non Bucketed partitions uses a StreamBuffer. The proposed change applies 
the same for Bucketed partitions.
   
   Existing unit tests. Added new unit test. The unit test fails without the 
patch. Manual testing on dataset used to reproduce the problem.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to