Skip to content

Support cache_httpfs and configure cache directory#147

Merged
fuziontech merged 2 commits intomainfrom
support-cache-httpfs
Feb 6, 2026
Merged

Support cache_httpfs and configure cache directory#147
fuziontech merged 2 commits intomainfrom
support-cache-httpfs

Conversation

@fuziontech
Copy link
Member

Summary

  • Community extension support: LoadExtensions() now parses "ext FROM community" syntax — INSTALL uses the full string while LOAD uses just the extension name
  • Auto-configure cache directory: When cache_httpfs is in the extensions list, sets cache_httpfs_cache_directory to {DataDir}/cache so S3/HTTP responses are cached locally
  • Update example config: Adds cache_httpfs FROM community as a recommended extension for DuckLake + S3 deployments

Test plan

  • go build succeeds
  • go test ./server passes
  • go test ./transpiler/... passes
  • Manual: run with cache_httpfs FROM community in extensions, verify SELECT cache_httpfs_get_cache_config() returns the configured cache directory

🤖 Generated with Claude Code

fuziontech and others added 2 commits February 5, 2026 22:15
Enable community extension installation (INSTALL ext FROM community syntax)
and auto-configure cache_httpfs cache directory under DataDir/cache for
faster S3/HTTP file access with DuckLake.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Extract parseExtensionName() to deduplicate FROM parsing logic
- Add os.MkdirAll for cache directory before SET (avoid runtime failure)
- Add trusted-source comments on SQL string concatenation
- Comment out cache_httpfs in example config (requires internet)
- Add table tests for parseExtensionName and hasCacheHTTPFS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fuziontech fuziontech merged commit 5705a86 into main Feb 6, 2026
10 checks passed
@fuziontech fuziontech deleted the support-cache-httpfs branch February 6, 2026 08:02
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.

1 participant