Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loadable extensions #1403

Merged
merged 10 commits into from Sep 11, 2023
Merged

Loadable extensions #1403

merged 10 commits into from Sep 11, 2023

Conversation

carlopi
Copy link
Collaborator

@carlopi carlopi commented Sep 7, 2023

duckdb.patch is the diff actually in duckdb/duckdb#8827, so might make more sense for that to be merged first, and then removing the duckdb.patch file AND bumping submodule duckdb to the relevant commit.


Very much "Works on my machine" vibes, and this is worth of a proper explainer, but...

git clone https://github.com/carlopi/duckdb-wasm.git
git checkout loadable-extensions
cd duckdb-wasm
git submodule init
git submodule update
cd submodules/duckdb
git apply ../../duckdb.patch
cd ../../
make clean && make build_loadable && make serve_loadable

Should launch a duckdb-wasm shell on your browser, where typing:

duckdb> SET custom_extension_repository='http://127.0.0.1:8081';
duckdb> SUMMARIZE FROM 'https://shell.duckdb.org/data/benchmarks.json';

Will autoload json extension, and show some summary information for that json file.

@carlopi
Copy link
Collaborator Author

carlopi commented Sep 8, 2023

Almost there, current failures are due to:

Error: Extension Autoloading Error: An error occured while trying to automatically install the required extension 'parquet':
Extension "http://extensions.duckdb.org/duckdb-wasm/d5c4422f72/wasm_eh/parquet.duckdb_extension.wasm" not found.
Extension "parquet" is an existing extension.

Install it first using "INSTALL parquet".

@Mytherin Mytherin merged commit aeef4dd into duckdb:main Sep 11, 2023
15 checks passed
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.

None yet

2 participants