Skip to content

fix(storage): make pyiceberg an optional dependency - #1513

Merged
o-santi merged 5 commits into
mainfrom
storage/pyiceberg-optional
Jun 4, 2026
Merged

o-santi merged 5 commits into
mainfrom
storage/pyiceberg-optional

Conversation

@o-santi

@o-santi o-santi commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Fix #1508, making pyiceberg an optional dependency.

@o-santi
o-santi requested a review from a team as a code owner June 4, 2026 12:16
@o-santi
o-santi force-pushed the storage/pyiceberg-optional branch 2 times, most recently from 2effb0b to 60d4da2 Compare June 4, 2026 12:21
@o-santi
o-santi force-pushed the storage/pyiceberg-optional branch from 60d4da2 to c5d42e3 Compare June 4, 2026 12:23
o-santi added 3 commits June 4, 2026 09:55
this avoids a github api rate limit
this is in order to allow users to install supabase with storage's
optional dependency
@o-santi
o-santi merged commit d16cfc0 into main Jun 4, 2026
43 checks passed
@o-santi
o-santi deleted the storage/pyiceberg-optional branch June 4, 2026 13:09
spydon pushed a commit that referenced this pull request Oct 30, 2026
## Why

Storage analytics users who install `storage3[iceberg]` cannot load an
existing table because the extra omits the backend selected by
`catalog()`.

Closes #1872.

## What changed

- Request PyIceberg's `pyarrow` extra in the Iceberg extra and existing
mypy group.
- Add public async and generated sync table-load regressions with valid
Iceberg REST responses. Only HTTP is mocked.
- Refresh locked Pydantic from 2.12.2 to 2.12.3 so the existing
PyIceberg 0.10 can parse table metadata. That patch [reverts an upstream
validator
regression](https://github.com/pydantic/pydantic/releases/tag/v2.12.3).

## Scope

This fixes the Storage Iceberg installation. Backend selection and
public APIs retain their existing behavior. #1513 and #1792 address
optional imports rather than backend completeness.

## Tradeoffs

Arrow adds binary wheels to the opt-in extra. A base Storage
installation still imports without PyIceberg or Arrow.

## Blast radius

The shared lock has no other existing package version changes. Auth and
PostgREST response-parsing controls pass with the Pydantic patch.

## Verification

- Both new tests fail on unchanged upstream with missing FileIO. Fresh
fixed-wheel installations pass both tests and the localhost HTTP
reproduction on Python 3.9 and 3.11.
- Frozen Storage selection passes 82 tests. Mypy, Ruff, format, sync
generation, build, lock checks, and diff checks pass. CI-pinned uv 0.8.2
executes both regressions after mypy without an extra argument.
- Full Storage service tests are unverified. Isolated Supabase CLI
startup fails before services start because Docker image blobs return
input/output errors.

AI-assisted contribution. Reproductions and checks were run locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage3: make pyiceberg an optional [iceberg] extra (hard-dep on stable Storage clients)

2 participants