You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2026/06/23 20:30:00 UTC

[jira] [Resolved] (SPARK-57354) Add data source option to list hidden files

     [ https://issues.apache.org/jira/browse/SPARK-57354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-57354.
---------------------------------
    Fix Version/s: 4.3.0
       Resolution: Fixed

Issue resolved by pull request 56374
[https://github.com/apache/spark/pull/56374]

> Add data source option to list hidden files
> -------------------------------------------
>
>                 Key: SPARK-57354
>                 URL: https://issues.apache.org/jira/browse/SPARK-57354
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>    Affects Versions: 4.2.0
>            Reporter: Calvin Qin
>            Assignee: Calvin Qin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0
>
>
> Spark's file-based data sources skip hidden files and directories (names who start with _ or . and files ending in ._COPYING _) during file listing and partition discovery. This filter is always on, with no way to override it. 
> This adds a way to opt out of the filter, with a per-read data source option `listHiddenFiles` and a session config `spark.sql.files.listHiddenFiles` (default false)
> When true, hidden files and directories are listed. False maintains default behavior. The per-read option takes precedent over the session config.



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