From da1b95f9b60c50defb5fac8f2ea09d8c62ed7d71 Mon Sep 17 00:00:00 2001 From: Tyler White <50381805+IndexSeek@users.noreply.github.com> Date: Thu, 17 Aug 2023 12:44:01 +0000 Subject: [PATCH] fix(duckdb): load httpfs with read_csv from s3 --- ibis/backends/duckdb/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ibis/backends/duckdb/__init__.py b/ibis/backends/duckdb/__init__.py index d34b6aaa910a..474c75c4f194 100644 --- a/ibis/backends/duckdb/__init__.py +++ b/ibis/backends/duckdb/__init__.py @@ -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)