Yicong Huang created SPARK-56166:
------------------------------------
Summary: Use ArrowBatchTransformer.enforce_schema to replace
manual type coercion logic
Key: SPARK-56166
URL: https://issues.apache.org/jira/browse/SPARK-56166
Project: Spark
Issue Type: Improvement
Components: PySpark
Affects Versions: 4.2.0
Reporter: Yicong Huang
There are several places in PySpark that manually iterate over columns to
coerce types using coerce_arrow_array and reassemble RecordBatches. This
duplicates the logic already provided by ArrowBatchTransformer.enforce_schema.
We should consolidate these to use enforce_schema for consistency and reduced
code duplication.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]