Skip to main content

open_file_table

Function open_file_table 

Source
pub async fn open_file_table(
    state: &SessionState,
    location: &str,
) -> Result<Arc<dyn TableProvider>>
Expand description

Open location (a path, glob, directory or URL) as a listing table. The format and compression come from the file extension; Hive-style partition directories (year=2024/) become columns. A relative path is relative to the current directory, in a session with a database too: a stored definition’s paths are made relative to the database’s directory when it is stored, and resolved against it on replay (see crate::database).