You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/03/23 21:36:00 UTC
[jira] [Updated] (SPARK-56165) Use temporary directory instead of saveAsTable in test_data_source_segfault
[ https://issues.apache.org/jira/browse/SPARK-56165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-56165:
-----------------------------------
Labels: pull-request-available (was: )
> Use temporary directory instead of saveAsTable in test_data_source_segfault
> ---------------------------------------------------------------------------
>
> Key: SPARK-56165
> URL: https://issues.apache.org/jira/browse/SPARK-56165
> Project: Spark
> Issue Type: Improvement
> Components: PySpark, Tests
> Affects Versions: 4.2.0
> Reporter: Yicong Huang
> Priority: Major
> Labels: pull-request-available
>
> In `test_data_source_segfault`, the two write/commit subtests use `saveAsTable("test_table")` to exercise the Python worker write and commit code paths. This can fail when the catalog rejects the custom data source format.
> We should replace `saveAsTable("test_table")` with `.save(tempdir)` using `tempfile.TemporaryDirectory`, which avoids catalog format validation while still exercising the same Python worker write/commit code paths. This is also consistent with how other write tests in the same file are structured.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org