Skip to content

fix(httpfs): make openFileWithImmutability available in WASM builds - #68

Merged
adsharma merged 1 commit into
mainfrom
fix-wasm-openfilewithimmutability
Aug 28, 2026
Merged

fix(httpfs): make openFileWithImmutability available in WASM builds#68
adsharma merged 1 commit into
mainfrom
fix-wasm-openfilewithimmutability

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

openFileWithImmutability() was declared under
#if HTTPFS_REMOTE_READ_OPTIMIZATIONS, which is 0 for WASM builds, but XetFileSystem::openFile calls it unconditionally. This broke the wasm build in the httpfs extension source target.

Move the declaration into the always-compiled public section of HTTPFileSystem. The immutableContent flag remains a no-op in builds without remote read optimizations.

openFileWithImmutability() was declared under
#if HTTPFS_REMOTE_READ_OPTIMIZATIONS, which is 0 for __WASM__ builds,
but XetFileSystem::openFile calls it unconditionally. This broke the
wasm build in the httpfs extension source target.

Move the declaration into the always-compiled public section of
HTTPFileSystem. The immutableContent flag remains a no-op in builds
without remote read optimizations.
@adsharma
adsharma merged commit 6a3f264 into main Aug 28, 2026
4 checks passed
@adsharma
adsharma deleted the fix-wasm-openfilewithimmutability branch August 28, 2026 03:57
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