pub fn discover_hive_partitioned_files(
root: impl AsRef<Path>,
file_pattern: Option<&str>,
) -> IngestionResult<Vec<PartitionedFile>>Expand description
Discover files under root whose parent path (relative to root) consists only of hive-style
key=value directory segments.
rootmust exist and be a directory.- If
file_patternisSome, it is aglob::Patternstring matched against the path of each file relative toroot(use forward slashes in the pattern for portability, e.g.**/*.csv). - Results are sorted by
Pathfor deterministic ordering.