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/04/13 12:44:00 UTC
[jira] [Updated] (SPARK-56459) Fix MatchError in FileDataSourceV2.attachFilePath for fatal errors
[ https://issues.apache.org/jira/browse/SPARK-56459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-56459:
-----------------------------------
Labels: pull-request-available (was: )
> Fix MatchError in FileDataSourceV2.attachFilePath for fatal errors
> ------------------------------------------------------------------
>
> Key: SPARK-56459
> URL: https://issues.apache.org/jira/browse/SPARK-56459
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.2.0
> Reporter: Kent Yao
> Priority: Major
> Labels: pull-request-available
>
> FileDataSourceV2.attachFilePath uses NonFatal pattern matching which does not match fatal errors like OutOfMemoryError. When OOM occurs during file reading (e.g., large Parquet row groups), the incomplete match causes a scala.MatchError that masks the original error.
> The fix adds a catch-all case to rethrow fatal errors directly, preserving the original error for proper JVM-level handling.
--
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