zahed1994 commented on PR #58405: URL: https://github.com/apache/spark/pull/58405#issuecomment-6833996331
Thanks for the detailed review and guidance! Addressed all findings in commit decf16ea9a2: 1. **DataTypeOps Ownership (P1, P2)**: Routed `ArrowDtype` columns to `IntegralExtensionOps`, `FractionalExtensionOps`, `StringExtensionOps`, and `BooleanExtensionOps`. `to_pandas()` now properly restores `ArrowDtype`, and boolean `&`, `|`, `^` operations compute via `column_op` with Kleene logic without recursion. 2. **Comparison Short-Circuit (P1)**: Broadened `_should_return_all_false` in `DataTypeOps` to recognize `ArrowDtype` comparisons with compatible scalars and Series (strings, booleans, timestamps, dates, durations, and binaries) instead of short-circuiting to all `False`. 3. **Timestamp Timezone Conversions (P1)**: Implemented `prepare()` and `restore()` in `DatetimeOps` for `ArrowDtype` timestamps to convert through the session time zone, ensuring wall-clock and instant parity with pandas. 4. **Dtype Preservation in `loc` and `combine_frames` (P2)**: Carried through the source field's exact `ArrowDtype` when the Spark type matches. 5. **Arrow Dtype Rebuild (P2)**: Updated `spark_type_to_pandas_dtype` to handle `TimestampType` and nested timestamp types without assertion errors, honoring `spark.sql.execution.arrow.useLargeVarTypes`. 6. **Narrowed Arrow Trigger & Duplicate Reads (P1, P3)**: Cached operand dtypes once in `column_op`, and narrowed `use_arrow_dtypes` to fire only for `ArrowDtype` operands or comparisons on `string[pyarrow]`. 7. **Expanded Test Suite (P2)**: Added test coverage in `test_typedef.py` and `test_string_ops.py` covering null comparisons, scalar comparisons, mixed operands, boolean mask logic, `loc` assignment, cross-frame ops, and non-UTC timezone roundtrips. -- 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]
