dbtsai opened a new pull request, #279: URL: https://github.com/apache/spark-connect-rust/pull/279
### What changes were proposed in this pull request? Preserve the existing row path for explicit pandas timestamp input when `notna`, `astype`, or `where` is customized. The timestamp Arrow fast path introduced by #130 currently bypasses those methods: for example, an instance `notna()` that masks cells is ignored and the original timestamps are sent instead. Ordinary supported pandas frames keep the Arrow path. Also reject unsupported naive host timezones before querying the session timezone, so an input that must use local row fallback does not gain an unnecessary configuration RPC or network failure. Add 36 regression cases covering custom transformations/exceptions, unused instance hooks and unsupported host zones, including mixed aware/naive columns, nulls, schema metadata and errors before configuration RPCs. Existing columnar tests continue to assert IPC contents and configuration requests. ### Why are the changes needed? Follow-up to [SPARK-60686](https://issues.apache.org/jira/browse/SPARK-60686) and #130. Customized pandas conversions should retain the documented row fallback and its observable behavior. ### Does this PR introduce any user-facing change? Fixes timestamp fast-path behavior for customized pandas normalization methods and avoids unnecessary configuration requests for unsupported naive host timezones. ### How was this patch tested? - Reproduced the normalization difference using the original helper with pandas 2.3.3 / PyArrow 26.0.0: a custom `notna()` masks all cells for row conversion, while the original Arrow helper emits the original timestamps. The fixed helper declines that input. - Passed 50 helper checks on each of pandas 2.3.3 and 3.0.6 (PyArrow 26.0.0), across ns/us and aware/naive timestamp eligibility, custom instance/class normalization methods, aware/naive UTC Arrow output and host-zone preflight. These use existing installed native schema types, not a build of this revision. - Python syntax checks and `git diff --check` passed. - **Draft: runtime validation remains pending.** Cargo is not installed in this environment. Extension build and all five required Cargo pre-push checks could not start. The new public API tests cannot collect without a matching extension; API introspection, official parity and live Spark checks remain pending. No native integration or CI pass is claimed. - Genuine local Claude Code reviewed the full landed patch and two complete follow-up candidates. The final review verified both fixes with no blocking source findings; accepted low-severity residual behavior and nits are recorded. Runtime validation remains pending. Eligible naive UTC input retains its existing dependency on a successful session-timezone configuration read. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (GPT-6) 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]
