dmitry-chirkov-dremio opened a new pull request, #55278: URL: https://github.com/apache/arrow/pull/55278
### Rationale for this change Gandiva can exhaust the stack when casting a large batch to decimal with JIT optimization disabled. ### What changes are included in this PR? One regression test: `TestDecimal.CastLargeBatch`. It casts 524,288 int32 rows to decimal and checks the results, including negative values and nulls, with optimization off and on. ### Are these changes tested? On macOS ARM64 with LLVM 21.1.7, the test crashes without the fix (SIGSEGV, exit 139) and passes with it. The fix has not been included in this commit. ### Are there any user-facing changes? No. This commit only adds a test. ### Was AI used for this PR? AI tools helped investigate the crash and write the test and description. The test was checked locally before submission. **PR code and description written by:** - [ ] Human - [x] AI **Reviewed before submission by:** - [ ] Human - [x] AI - [ ] Not reviewed GitHub Issue: #55277 P.S. This PR contains only the regression test so we can see the crash in CI. The fix will come in a second commit. -- 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]
