Search Shortcut cmd + k | ctrl + k

Access S3, GCS, Azure, HTTP, local filesystem, and other storage services through Apache OpenDAL

Maintainer(s): chitralverma

Compatibility Matrix

This table covers all DuckDB releases that have not reached end-of-life, including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.

Platform 1.5.5 1.5.6 2.0.0 2.0.1
Linux AMD64
Linux ARM64
macOS AMD64
macOS ARM64
Windows AMD64
Windows ARM64
WebAssembly

Installing and Loading

INSTALL opendal FROM community;
LOAD opendal;

Example

-- Install and load the extension
INSTALL opendal FROM community;
LOAD opendal;

-- Create a secret for local filesystem access
CREATE SECRET my_fs (TYPE fs, SCOPE 'fs://', config MAP{'root': '.'});

-- Write a Parquet file through OpenDAL
COPY (SELECT range AS id, range * 2 AS doubled FROM range(100))
TO 'fs:///output/data.parquet' (FORMAT parquet);

-- Read it back
SELECT count(*), sum(doubled) FROM read_parquet('fs:///output/data.parquet');

-- List files
SELECT * FROM opendal_ls('fs:///output/');

-- Stat a file
SELECT name, metadata.content_length FROM opendal_stat('fs:///output/data.parquet');

About opendal

The opendal extension integrates Apache OpenDAL into DuckDB as a virtual filesystem, enabling transparent read and write access to multiple storage services through a unified SQL interface.

Supported Storage Services

  • fs:// / file:// — Local filesystem
  • s3:// — Amazon S3 and S3-compatible stores (MinIO, R2, etc.)
  • gcs:// — Google Cloud Storage
  • azblob://, azdls://, azfile:// — Azure Blob Storage, Data Lake Gen2, Files
  • http:// / https:// — HTTP servers (read-only)
  • memory:// — In-memory storage (useful for testing)

Key Features

  • Read & write Parquet, CSV, and JSON files through any supported service
  • Glob patterns work transparently (read_parquet('s3://bucket/**/*.parquet'))
  • Table functions for storage operations:
    • opendal_stat() — file metadata
    • opendal_ls() — directory listing with optional recursion
    • opendal_glob() — pattern-based file discovery
    • opendal_du() — disk usage summaries
    • opendal_copy() — cross-service and same-service file copy
  • Scoped secrets with per-service configuration via DuckDB's secret manager
  • Configurable layers — retry, timeout, I/O concurrency, and caching (in-memory via foyer, optional on-disk tier)
  • Global settings for default I/O, retry, timeout, and cache configuration
  • Coexistence with other filesystem extensions such as httpfs via the opendal_override_schemes setting
  • DuckDB FileSystem logging integration for structured I/O tracing

Configuration Example

CREATE SECRET warehouse (
    TYPE s3,
    SCOPE 's3://warehouse',
    config MAP{
        'access_key_id': '...',
        'secret_access_key': '...',
        'region': 'us-east-1',
        'endpoint': 'http://localhost:9000'
    },
    io_config MAP{'read.concurrent': '4', 'write.chunk_size': '8 MiB'},
    retry_config MAP{'max_times': '5', 'jitter': 'true'},
    cache_config MAP{'memory_size': '256 MiB'}
);

SELECT * FROM read_parquet('s3://warehouse/data/*.parquet');

For full documentation, see the project repository.

Added Functions

function_name function_type description comment examples
opendal_copy table NULL NULL  
opendal_du table NULL NULL  
opendal_info table NULL NULL  
opendal_is_manually_set scalar NULL NULL  
opendal_ls table NULL NULL  
opendal_reset_operators pragma NULL NULL  
opendal_schemes table NULL NULL  
opendal_stat table NULL NULL  
opendal_version scalar NULL NULL  

Overloaded Functions

This extension does not add any function overloads.

Added Types

This extension does not add any types.

Added Settings

name description input_type scope aliases typed_value
opendal_cache_config Global OpenDAL data-cache options. MAP(VARCHAR, VARCHAR) GLOBAL [] NULL
opendal_io_config Global OpenDAL reader/writer options. MAP(VARCHAR, VARCHAR) GLOBAL [] NULL
opendal_override_schemes Comma-separated schemes (e.g. 's3,gcs') for which the OpenDAL filesystem takes precedence over other extensions in DuckDB's filesystem dispatch. Empty disables all overrides. VARCHAR GLOBAL []  
opendal_retry_config Global OpenDAL retry-layer options. MAP(VARCHAR, VARCHAR) GLOBAL [] NULL
opendal_timeout_config Global OpenDAL timeout-layer options. MAP(VARCHAR, VARCHAR) GLOBAL [] NULL
temp_directory Set the directory to which temporary files are written. VARCHAR GLOBAL [] post.db.tmp
© 2026 DuckDB Foundation, Amsterdam NL
DuckDB Home Code of Conduct Trademark Use Blog