HyukjinKwon opened a new pull request, #533: URL: https://github.com/apache/spark-connect-rust/pull/533
### What changes were proposed in this pull request? An offline regression test, `test_a_plan_over_a_deep_expression_is_analyzed_from_a_thread_with_a_small_stack` in `python/tests/test_dropin_offline.py`. In a subprocess, a Python thread of 512 KiB analyzes a DataFrame of 300 `withColumn` levels over a column of 700 additions: it reads `schema`, `dtypes` and `isStreaming`, and calls `explain()`. The mock server sets the plan compression conf that a real server sets. The test checks that the process exits cleanly and that each analysis is answered. There is no source change. ### Why are the changes needed? That shape crashed the process with SIGBUS (exit 138) on master before #522, although each depth is within its own bound. With the plan compression of a real server, the encoded size of the plan is measured on the thread of the call. SPARK-61469 (#522) fixed it by driving the future of a blocking call from the heap. The existing small-stack tests cover a deep plan and a deep expression only separately, and without the plan compression conf, so they did not catch it. This test does: it fails with SIGBUS before #522 and passes after. This is a follow-up of SPARK-61400 (#494). ### Does this PR introduce _any_ user-facing change? No, test only. ### How was this patch tested? The new test fails on master before #522 (returncode -10, SIGBUS) and passes with #522. The offline suite (1836 passed) and the e2e suite against a Spark 4.3.0 server (261 passed) pass, as do the Rust library tests, the `--no-run` builds, `cargo fmt --check`, `scripts/audit_no_stubs.sh` and the ruff gates. The repro shapes 300/700, 100/740, 600/700, 300/740 and 600/740 (relation levels/additions) crash on a 512 KiB thread before #522, and all exit cleanly after it, for `schema`, `explain`, `dtypes` and `isStreaming`. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 This pull request and its description were written by Isaac. -- 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]
