Skip to content

Commit 3ae414d

Browse files
committed
Install cache_httpfs extension to DuckDB.
1 parent 57a22c5 commit 3ae414d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

usecases/executor_factory/analytics_executor_factory.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ func (f AnalyticsExecutorFactory) GetExecutor(ctx context.Context) (repositories
5353

5454
switch f.config.Type {
5555
case infra.BlobTypeS3, infra.BlobTypeGCS:
56-
_, err = db.ExecContext(ctx, fmt.Sprintf(`create secret if not exists analytics (%s);`, f.config.ConnectionString))
56+
_, err = db.ExecContext(ctx, fmt.Sprintf(`
57+
force install cache_httpfs from community;
58+
load cache_httpfs;
59+
set global cache_httpfs_type = 'in_mem';
60+
set global cache_httpfs_enable_glob_cache = 0;
61+
create secret if not exists analytics (%s);
62+
`, f.config.ConnectionString))
5763
}
5864
})
5965

0 commit comments

Comments
 (0)