perf(remote): cache schema of remote tables (#3015)

Caches the schema of remote tables and invalidates the cache when:

1. After 30 second TTL
2. When we do an operation that changes schema (e.g. add_columns) or
checks out a different version (e.g. checkout_version)
3. When we get a 400, 404, or 500 reponse

If the schema is retrieved close to the TTL, we optimistically fetch the
schema in the background. This means a continuous stream of queries will
never have the schema fetch on the critical path.

Closes #3014

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Will Jones
2026-02-13 15:21:04 -08:00
committed by GitHub
parent dcb1443143
commit 2d60ea6938

File diff suppressed because it is too large Load Diff