Support cache_httpfs and configure cache directory#147
Merged
fuziontech merged 2 commits intomainfrom Feb 6, 2026
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LoadExtensions()now parses"ext FROM community"syntax —INSTALLuses the full string whileLOADuses just the extension namecache_httpfsis in the extensions list, setscache_httpfs_cache_directoryto{DataDir}/cacheso S3/HTTP responses are cached locallycache_httpfs FROM communityas a recommended extension for DuckLake + S3 deploymentsTest plan
go buildsucceedsgo test ./serverpassesgo test ./transpiler/...passescache_httpfs FROM communityin extensions, verifySELECT cache_httpfs_get_cache_config()returns the configured cache directory🤖 Generated with Claude Code