txwyy123 commented on PR #59841:
URL: https://github.com/apache/spark/pull/59841#issuecomment-6841515685

   @LuciferYang To answer your question directly: **no, there is no width under 
default settings where `processNext()` exceeds the limit.**
   
   Measured `maxMethodCodeSize` (compiled bytecode) on this branch with 
`maxFields=200` to allow codegen at all widths, AQE off, broadcast off:
   
   | Cols (per side) | Total | maxMethod bytecode |
   |---|---|---|
   | 20+20 | 40 | 1,284 bytes |
   | 30+30 | 60 | 1,834 bytes |
   | 40+40 | 80 | 2,384 bytes |
   | 45+45 | 90 | 2,659 bytes |
   | 48+48 | 96 | 2,824 bytes |
   | 50+50 | 100 | 1,844 bytes |
   
   The largest `processNext()` at default `maxFields=100` is **2,824 bytes** 
(at 96 columns) — well under the 8K JIT limit. The 50+50 case drops to 1,844 
because `chooseCode`'s expression splitting kicks in.
   
   **This change only benefits joins when `maxFields` is raised above 100.** 
I'll update the PR description to state that clearly. The field-based 
extraction threshold (`totalCols * 80 > 8000`, i.e., ~100+ total columns) 
naturally gates on this — it only triggers for joins that can't happen under 
default settings anyway.
   
   Should I scope the description to say this is for users who raise 
`maxFields`, or would you prefer a different framing?
   


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