zhengruifeng opened a new pull request, #58463:
URL: https://github.com/apache/spark/pull/58463

   ### What changes were proposed in this pull request?
   
   This PR splits the built-in expression definitions in `FunctionRegistry` 
into private helper
   methods grouped by their existing logical sections. It also moves the 
internal expression
   registration sequence into a helper method.
   
   The public `expressions` map, its entry order, and the internal registration 
order are preserved.
   
   ### Why are the changes needed?
   
   `FunctionRegistry` defines hundreds of expressions in its object 
initializer. Code coverage
   instrumentation adds enough bytecode for that initializer to exceed the 
JVM's 64 KB method limit.
   Moving the expression construction and internal registrations into helper 
methods keeps each
   generated method below that limit and allows coverage instrumentation to 
remain enabled.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Validation is pending while this PR is a draft. The coverage-instrumented 
Catalyst build will be
   run and the result added here.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-5)
   


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