Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jun 18, 2024
1 parent 666648e commit 8786193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/polars-lazy/src/scan/file_list_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ use crate::prelude::*;

pub type PathIterator = Box<dyn Iterator<Item = PolarsResult<PathBuf>>>;

/// Recursively traverses directories and expands globs if `glob` is `true`.
/// Returns the expanded paths and the index at which to start parsing hive
/// partitions from the path.
fn expand_paths(
paths: &[PathBuf],
#[allow(unused_variables)] cloud_options: Option<&CloudOptions>,
Expand Down Expand Up @@ -237,7 +240,7 @@ pub trait LazyFileListReader: Clone {
}

/// Returns a list of paths after resolving globs and directories, as well as
/// the hive start index.
/// the string index at which to start parsing hive partitions.
fn expand_paths(&self) -> PolarsResult<(Arc<[PathBuf]>, usize)> {
expand_paths(self.paths(), self.cloud_options(), self.glob())
}
Expand Down

0 comments on commit 8786193

Please sign in to comment.