Skip to content

docs(duckdb): add S3-compatible endpoint secret example - #5934

Open
goanpeca wants to merge 5 commits into
SQLMesh:mainfrom
goanpeca:docs/duckdb-s3-compatible-endpoint
Open

goanpeca wants to merge 5 commits into
SQLMesh:mainfrom
goanpeca:docs/duckdb-s3-compatible-endpoint

Conversation

@goanpeca

@goanpeca goanpeca commented Jul 31, 2026 •

Copy link
Copy Markdown

Description

The DuckDB connection's secrets option passes every field through to CREATE OR REPLACE SECRET, so DuckDB's endpoint and url_style S3 parameters already work. The examples only show Amazon S3, so nothing on the page says another S3-compatible store is supported.

Per review, instead of a duplicate block this:

  • adds a commented endpoint line to the existing List Format example, in both the YAML and Python tabs
  • adds a short "S3-Compatible Endpoints" note pointing at it, plus url_style: path for providers that need path-style addressing

Docs only, no code changes.

Test Plan

  • Ran DuckDB with an s3 secret using endpoint (host, no scheme) against Backblaze B2: read a CSV and wrote and read back a Parquet file.
  • Confirmed DuckDB accepts endpoint and url_style in the CREATE OR REPLACE SECRET (type 's3', ...) statement that BaseDuckDBConnectionConfig._cursor_init generates.

Checklist

  • I have run make style and fixed any issues (N/A: markdown only, all pre-commit hooks are Python-only)
  • I have added tests for my changes (if applicable) (N/A: docs)
  • All existing tests pass (make fast-test) (N/A: docs)
  • My commits are signed off (git commit -s) per the DCO

Summary by CodeRabbit

  • Documentation
    • Added guidance for configuring S3-compatible endpoints in DuckDB secrets, including how to specify the endpoint without https:// and when to use path-style addressing.
    • Updated the secrets examples to show an optional endpoint setting for S3-compatible providers.

Signed-off-by: Gonzalo Peña-Castellanos <goanpeca@gmail.com>

@mday-io mday-io left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AWS-only examples above don't make it obvious how to point at an S3-compatible provider; so, nice addition!

Two small, non-blocking thoughts:

  1. Duplication: this repeats the full gateways → connection → catalogs → extensions → secrets boilerplate already shown twice above (List Format and Dictionary Format examples). Could this instead be a short note + a single endpoint: "..." line added to the existing List Format example, rather than a duplicate block? Would keep the doc DRYer while surfacing the same info.
  2. Python tab: other subsections here pair the YAML tab with an equivalent Python config tab - was leaving it YAML-only here intentional (there's precedent in the Onelake filesystem example below), or worth adding for consistency?

Either way, LGTM as documentation content, just flagging for your call on scope.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The DuckDB integration documentation adds commented endpoint settings to its YAML and Python S3 secret examples. It explains how to set endpoint and, when required, url_style: path for S3-compatible stores.

Changes: DuckDB S3-Compatible Endpoint Documentation

Layer / File(s) Summary
Document S3-compatible endpoints
docs/integrations/engines/duckdb.md
The YAML and Python S3 secret examples add commented endpoint settings. A new section states that S3 secrets target Amazon S3 by default and describes endpoint and url_style: path settings for S3-compatible stores.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: themisvaltinos

Merge Risk: Minimal · up to 507cc

This PR only adds documentation on configuring DuckDB for S3-compatible storage. It does not change runtime behavior, so no user or production impact is expected and it is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: a DuckDB documentation example for an S3-compatible endpoint secret. The change adds a commented endpoint line to the List Format example and an S3-Compatible Endpoints not…
Description check Passed The description follows the template's Description, Test Plan, and Checklist sections. It explains the motivation (the examples only show Amazon S3), lists the concrete doc changes (commented endpoint…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: a DuckDB documentation example for an S3-compatible endpoint secret. The change adds a commented endpoint line to the List Format example and an S3-Compatible Endpoints note, so the title matches the main change. It is a short single sentence, uses the conventional docs(scope) prefix, and is 55 characters long.

Full details: Description check

Explanation

The description follows the template's Description, Test Plan, and Checklist sections. It explains the motivation (the examples only show Amazon S3), lists the concrete doc changes (commented endpoint line in YAML and Python tabs, S3-Compatible Endpoints note, url_style: path), and reports testing against Backblaze B2. The checklist is filled in with N/A reasons and the DCO box is checked. The unchecked make style and test boxes are marked N/A with reasons, so the description is essentially complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6aad7e23-19b0-48be-a40b-b5a548e0d020
Commits

Reviewing files that changed from the base of the PR and between ec01bbc and 507cc4c.

Files selected for processing: 1

  • docs/integrations/engines/duckdb.md
Files skipped from review as they are similar to previous changes: 1

  • docs/integrations/engines/duckdb.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@goanpeca
goanpeca marked this pull request as ready for review November 27, 2026 01:03
@goanpeca

Copy link
Copy Markdown
Author

Hi @mday-io, sorry for the long gap! Took both suggestions:

Dropped the duplicate block. Now it's a short note plus a commented endpoint line in the existing List Format example.
Added the same line to the Python tab too.

Tested it against Backblaze B2 with DuckDB. Ready for another look.

@goanpeca
goanpeca requested a review from mday-io November 27, 2026 01:15
@goanpeca

Copy link
Copy Markdown
Author

@mday-io gentle ping, both suggestions are in. Ready for another look 🚀

…rets notes

The note sat above paragraphs that apply to every secret, so they read as part of it. Also point it at the List Format example, the only one with the endpoint line.

Signed-off-by: mday-io <mdaytn@gmail.com>

@mday-io mday-io left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this back up. Both suggestions are in. I moved the new section below the general paragraphs so they don't read as S3-specific, and pointed it at the List Format example. LGTM.

@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants