Yicong-Huang opened a new pull request, #53893:
URL: https://github.com/apache/spark/pull/53893

   ### What changes were proposed in this pull request?
   
   This PR extends the PyArrow `pa.Array.cast()` test coverage to include 
non-numerical scalar types.
   
   **New source types added (28 types):**
   - Boolean: `bool`
   - String: `string`, `large_string`
   - Binary: `binary`, `large_binary`, `fixed_size_binary_16`
   - Decimal: `decimal128`, `decimal256`
   - Date: `date32`, `date64`
   - Timestamp: `timestamp_s`, `timestamp_ms`, `timestamp_us`, `timestamp_ns`
   - Timestamp with timezone: `timestamp_s_tz`, `timestamp_ms_tz`, 
`timestamp_us_tz`, `timestamp_ns_tz`, `timestamp_s_tz_ny`, 
`timestamp_s_tz_shanghai`
   - Duration: `duration_s`, `duration_ms`, `duration_us`, `duration_ns`
   - Time: `time32_s`, `time32_ms`, `time64_us`, `time64_ns`
   
   ### Why are the changes needed?
   
   Part of [SPARK-54936](https://issues.apache.org/jira/browse/SPARK-54936) to 
monitor upstream PyArrow behavior changes. Detects breaking changes when 
upgrading PyArrow versions.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This PR only adds tests.
   
   ### How was this patch tested?
   ```
   pytest python/pyspark/tests/upstream/pyarrow/test_pyarrow_array_cast.py -v
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


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