[
https://issues.apache.org/jira/browse/SPARK-55303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruifeng Zheng resolved SPARK-55303.
-----------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
Issue resolved by pull request 54084
[https://github.com/apache/spark/pull/54084]
> Create golden file test framework
> ---------------------------------
>
> Key: SPARK-55303
> URL: https://issues.apache.org/jira/browse/SPARK-55303
> Project: Spark
> Issue Type: Sub-task
> Components: PySpark
> Affects Versions: 4.2.0
> Reporter: Yicong Huang
> Assignee: Yicong Huang
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0
>
>
> The recent coercion test refactoring (SPARK-55114, SPARK-55135, SPARK-55164,
> SPARK-55235) introduced a pandas-based golden file testing pattern. These
> four test files in {{pyspark.sql.tests.coercion}} share significant
> duplicated code:
> - Timezone setup/teardown for deterministic results
> - Golden file read/write with {{SPARK_GENERATE_GOLDEN_FILES}} env var
> - Type/value string serialization helpers
> Proposing to extract a {{GoldenFileTestMixin}} in {{pyspark.testing}} to
> reduce duplication and make it easier to add new golden file based tests in
> the future.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]