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

   ### What changes were proposed in this pull request?
   
   Enable ANSI mode explicitly in the MergeRows nested-class codegen regression 
test.
   
   ### Why are the changes needed?
   
   The test uses 2,000 CASE WHEN branches to push generated code past the 
nested-class threshold. Without ANSI overflow checks, the generated code is 
smaller and the function stays in the outer class, so the qualified-call 
assertion fails in the Non-ANSI workflow. Pinning ANSI mode makes the test 
establish the code shape it needs regardless of the suite's default.
   
   The test still compiles the generated code, checks the qualified 
nested-class call, and compares results with whole-stage codegen disabled.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Built this branch with JDK 21 and ran the complete `WholeStageCodegenSuite` 
with both `SPARK_ANSI_SQL_MODE=false` and `true`: 109 passed and 3 ignored in 
each mode. Temporarily removing the patch reproduces the original nested-class 
assertion failure in Non-ANSI mode.
   
   `sql/Test/scalastyle` checked 1,169 files with zero errors or warnings. `git 
diff --check` passes.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex
   


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