Skip to main content

open_files

Function open_files 

Source
pub async fn open_files(
    state: &SessionState,
    locations: &[String],
    options: &FileOptions,
) -> Result<Arc<dyn TableProvider>>
Expand description

Open locations (paths, globs, directories or URLs) as one listing table, read as options say. What options leaves open comes from the extension of the first file found, as DataFusion infers it; a directory or glob lists only the files with that extension. Each location must name a file.