Skip to content

Commit

Permalink
fix(duckdb): load httpfs with read_csv from s3
Browse files Browse the repository at this point in the history
  • Loading branch information
IndexSeek authored and cpcloud committed Aug 17, 2023
1 parent e02888b commit da1b95f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ibis/backends/duckdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,10 @@ def read_csv(

# auto_detect and columns collide, so we set auto_detect=True
# unless COLUMNS has been specified
if any(source.startswith(("http://", "https://")) for source in source_list):
if any(
source.startswith(("http://", "https://", "s3://"))
for source in source_list
):
self._load_extensions(["httpfs"])

kwargs.setdefault("header", True)
Expand Down

0 comments on commit da1b95f

Please sign in to comment.