Skip to content

Commit

Permalink
[BUG] Apply the default IOConfig in daft.from_glob_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Chia committed Dec 15, 2023
1 parent 34a5513 commit b58371e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daft/io/file_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def from_glob_path(path: str, io_config: Optional[IOConfig] = None) -> DataFrame
parsed from the provided filesystem.
"""
context = get_context()
io_config = context.daft_planning_config.default_io_config if io_config is None else io_config
runner_io = context.runner().runner_io()
file_infos = runner_io.glob_paths_details([path], io_config=io_config)
file_infos_table = MicroPartition._from_pytable(file_infos.to_table())
Expand Down

0 comments on commit b58371e

Please sign in to comment.