--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: duckport excerpt: | DuckDB Community Extensions Read files and dataset services into DuckDB and stream query results to Lance, Parquet datasets, and Iceberg tables extension: name: duckport description: Read files and dataset services into DuckDB and stream query results to Lance, Parquet datasets, and Iceberg tables version: 0.2.3 language: C++ & Rust build: cmake license: MIT excluded_platforms: "wasm_mvp;wasm_eh;wasm_threads;windows_amd64;windows_amd64_mingw;osx_amd64" requires_toolchains: rust maintainers: - dentiny repo: github: dentiny/duckport ref: 847aea2ba56979ba35d13a6f825cefd6b953e5a7 docs: hello_world: | INSTALL duckport FROM community; LOAD duckport; COPY (SELECT 1 AS id, 'hello' AS body) TO 'duckport_demo_dataset' (FORMAT duckport_parquet); SELECT * FROM read_parquet('duckport_demo_dataset/*.parquet'); extended_description: | DuckPort reads files and dataset services as DuckDB tables and streams any SQL query result to Lance, Parquet dataset directories, or Iceberg REST tables. DuckDB evaluates filters, joins, casts and expressions before writing. ### Sources - Files: CSV, TSV, JSON/JSONL/NDJSON, Parquet, XML and WARC. Standard file readers support local/file/HTTP(S)/S3 objects, same-schema file lists, and local/S3 directories and globs. - Datasets and archives: Hugging Face Parquet exports, Common Crawl releases and segments, ATIF trajectories, arXiv bulk TAR shards and MECA packages. - Metadata: arXiv/DOAB/OAPEN OAI-PMH, Gutenberg RDF, PMC article metadata, inventory and article shards, and dated CourtListener bulk exports. - Selected attachments: Zenodo, Dataverse, Figshare, Internet Archive, Federal Register, GovInfo, HathiFiles, Library of Congress, Semantic Scholar, OpenStax, BHL, Regulations.gov, USPTO and bioRxiv/medRxiv. ```sql SELECT * FROM duckport_scan_csv('people.csv', header := true); SELECT * FROM duckport_scan_parquet('data/**/*.parquet'); SELECT * FROM duckport_scan_huggingface('lhoestq/demo1', split := 'train'); ``` Provider readers have explicit selection rules; metadata scans do not automatically download linked content. See the [reader catalog](https://github.com/dentiny/duckport/blob/main/docs/readers/README.md) for function names and required arguments. ### Sinks and COPY options | Format | Destination | Modes | | --- | --- | --- | | `duckport_lance` | Local/file/S3 Lance dataset | Create, APPEND, OVERWRITE | | `duckport_parquet` | Local/file/S3 Parquet dataset directory | Create, APPEND | | `duckport_iceberg` | Unpartitioned Iceberg REST table | Create, APPEND | ```sql COPY (SELECT id, upper(body) AS body FROM events) TO 'events.lance' (FORMAT duckport_lance); COPY events TO 'events_dataset' (FORMAT duckport_parquet, APPEND, TARGET_FILE_SIZE 268435456); ``` All sinks accept `TARGET_FILE_SIZE`, `PRESERVE_ORDER`, `READ_CONCURRENCY`, `WRITE_CONCURRENCY`, `SAMPLE_PERCENT`, `SAMPLE_ROWS`, `GENERATED_COLUMNS` and `EXTRA_OPTIONS`. Iceberg generated columns require compatible catalog metadata. `EXTRA_OPTIONS` forwards named arguments to explicit DuckPort readers. Writes default to one writer and a 512 MiB soft file-size target; `WRITE_CONCURRENCY 'auto'` opts into automatic writer planning. Lance additionally supports nested URL `BLOB_COLUMNS`, automatic tagged ATIF media downloads, `BLOB_INLINE_SIZE_THRESHOLD`, `BLOB_DEDICATED_SIZE_THRESHOLD`, `STORAGE_VERSION`, `COLUMN_STRUCTURAL_ENCODING`, `SCALAR_INDEX_COLUMNS`, `VECTOR_INDEX_COLUMNS`, `TEXT_INDEX_COLUMNS` and `BLOOM_FILTER_INDEX_COLUMNS`. Lance and Parquet accept `COLUMN_COMPRESSION` and `COLUMN_COMPRESSION_LEVEL`; Parquet restricts these to top-level columns. Iceberg requires `CATALOG_URI` and `STORAGE_ROOT`, with optional `WAREHOUSE`. ```sql COPY (SELECT id, image_url AS image FROM events) TO 'images.lance' (FORMAT duckport_lance, BLOB_COLUMNS ('image')); ``` Credentials come from URI-scoped DuckDB secrets, independently for source storage, provider APIs, blob URLs, destinations and Iceberg catalogs. Load `httpfs` to register its S3 and Hugging Face secret types. Parquet output is a directory; native `FORMAT PARQUET` writes a single file. Parquet and Iceberg do not support OVERWRITE, Lance blob ingestion or indexes. External commits are not rolled back by a DuckDB transaction; failure and publication behavior depend on the sink. See the [COPY reference](https://github.com/dentiny/duckport/blob/main/docs/writers/README.md) for all 24 options, defaults and sink restrictions, the [secrets guide](https://github.com/dentiny/duckport/blob/main/docs/secrets.md) for authentication, and the [changelog](https://github.com/dentiny/duckport/blob/main/CHANGELOG.md) for the initial release scope. extension_star_count: 0 extension_star_count_pretty: 0 extension_download_count: 2894 extension_download_count_pretty: 2.9k image: '/images/community_extensions/social_preview/preview_community_extension_duckport.png' layout: community_extension_doc --- ### Compatibility Matrix This table covers all DuckDB releases that have not reached [end-of-life](https://duckdb.org/release_calendar), 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 ```sql INSTALL {{ page.extension.name }} FROM community; LOAD {{ page.extension.name }}; ``` {% if page.docs.hello_world %} ### Example ```sql {{ page.docs.hello_world }}``` {% endif %} {% if page.docs.extended_description %} ### About {{ page.extension.name }} {{ page.docs.extended_description }} {% endif %} ### Added Functions
| function_name | function_type | description | comment | examples | |-----------------------------------|---------------|-------------|---------|----------| | duckport_scan_arxiv | table | NULL | NULL | | | duckport_scan_arxiv_metadata | table | NULL | NULL | | | duckport_scan_atif | table | NULL | NULL | | | duckport_scan_bhl | table | NULL | NULL | | | duckport_scan_bhl_open_data | table | NULL | NULL | | | duckport_scan_bhl_pages | table | NULL | NULL | | | duckport_scan_biorxiv | table | NULL | NULL | | | duckport_scan_commoncrawl | table | NULL | NULL | | | duckport_scan_commoncrawl_segment | table | NULL | NULL | | | duckport_scan_courtlistener | table | NULL | NULL | | | duckport_scan_csv | table | NULL | NULL | | | duckport_scan_dataverse | table | NULL | NULL | | | duckport_scan_doab | table | NULL | NULL | | | duckport_scan_federal_register | table | NULL | NULL | | | duckport_scan_figshare | table | NULL | NULL | | | duckport_scan_govinfo | table | NULL | NULL | | | duckport_scan_gutenberg | table | NULL | NULL | | | duckport_scan_hathifiles | table | NULL | NULL | | | duckport_scan_huggingface | table | NULL | NULL | | | duckport_scan_internet_archive | table | NULL | NULL | | | duckport_scan_json | table | NULL | NULL | | | duckport_scan_jsonl | table | NULL | NULL | | | duckport_scan_library_of_congress | table | NULL | NULL | | | duckport_scan_meca | table | NULL | NULL | | | duckport_scan_ndjson | table | NULL | NULL | | | duckport_scan_oapen | table | NULL | NULL | | | duckport_scan_openstax | table | NULL | NULL | | | duckport_scan_parquet | table | NULL | NULL | | | duckport_scan_pmc | table | NULL | NULL | | | duckport_scan_pmc_inventory | table | NULL | NULL | | | duckport_scan_pmc_shard | table | NULL | NULL | | | duckport_scan_regulations | table | NULL | NULL | | | duckport_scan_semantic_scholar | table | NULL | NULL | | | duckport_scan_tsv | table | NULL | NULL | | | duckport_scan_uspto | table | NULL | NULL | | | duckport_scan_warc | table | NULL | NULL | | | duckport_scan_xml | table | NULL | NULL | | | duckport_scan_zenodo | table | 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 | |---------------------------------------|-------------------------------------------------------------------|------------|--------|---------|-------------| | conversion_storage_io_request_size | Target bytes per source and Blob storage read request | BIGINT | GLOBAL | [] | 2097152 | | conversion_storage_io_timeout_ms | IO operation and body method timeout per attempt (ms) | BIGINT | GLOBAL | [] | 30000 | | conversion_storage_retry_factor | Storage exponential retry backoff multiplier for reads and writes | DOUBLE | GLOBAL | [] | 2.0 | | conversion_storage_retry_max_delay_ms | Maximum exponential retry backoff (ms) | BIGINT | GLOBAL | [] | 10000 | | conversion_storage_retry_max_times | Maximum retries after the initial attempt (0 disables retries) | BIGINT | GLOBAL | [] | 5 | | conversion_storage_retry_min_delay_ms | Initial exponential retry backoff (ms) | BIGINT | GLOBAL | [] | 500 | | conversion_storage_timeout_ms | Control operation timeout per attempt (ms) | BIGINT | GLOBAL | [] | 30000 | | temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |