-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update duckdb-wasm to latest #588
Comments
Related observablehq/stdlib#364 observablehq/stdlib#378 We ran into backwards incompatibility issues last time we upgraded, but someone simply needs to test the latest version of duckdb-wasm (currently 1.27.0) and then we can upgrade. |
Thank you for the quick response and merge!! I'm still getting the syntax error but I haven't been able to check whether the update has activated on the notebook (or what version of the stdlib and runtime it's using). Is the update immediate? I can check over the next few days if it changes or check if I just have a bug in the query. |
Hasn’t quite landed yet! It should be available this week though. We will give an update here when it is released. |
hey @jzavala-gonzalez, we just deployed the update and i see |
It's working!! I can finish the notebook now. Thank you so much!! In case there's interest here's the (in-progress) link: https://observablehq.com/@jzavala-gonzalez/am4-scalable-time-series-visualization It's a fork of UW Data's implementation of the M4 algorithm so it adjusts into AM4. The algorithm is very SQL friendly so UNPIVOT really helps wrap it together as the last step before plotting. Thank you! Closing the issue |
unfortunately the upgrade seems to have created some issues with the DuckDB client on Safari, so we just had to revert it. sorry for the churn, we will work on getting a fix in and re-applying the upgrade ASAP! i'll reopen the issue for now. |
Ok! Take the time you need. I had the chance to actually finish the notebook while the update was out so I already know it should all work once the update is back up. So no rush from my part. Thank you!! |
To summarize a little more:
We’re investigating; I also opened an issue on duckdb-wasm, in case they spot or know anything else. |
Hi all, Carlo here, from DuckDB team. We would really like to see duckdb-wasm bumped, and I am available to help, but I think in this case there is something off with either the S3 setting or with the CDN settings when range request are made passing "Accept-Encoding" parameter (this is automatically handled by the browser, see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding). Could someone take a look at these simple curl examples: duckdb/duckdb-wasm#1366 (comment). I believe fixing the responses in those cases (that is, NOT advertising something as compressed blindly but only when actually compressed) would solve the issue you are seeing. |
thanks for digging into this, Carlo! this is super helpful. we're going to look into our S3/CDN configuration and figure out what's happening – will update here. |
+1 |
apologies for the delay – the fix turned out to be more complicated than a CDN config change, we've still got a few things to iron out but hopefully will be able to ship it soon. |
I agree. It will be very usefull to load spatial extension in duckdb to realize beautiful map. Thank you by advance. |
I can't wait to use duckdb's spatial extension in observable... |
Any updates on this? I also found myself needing to use duckdb with unpivot and extension support. Will these changes be reflected in Observable Framework or should I also create an issue over there? |
@zookini Observable Framework uses a different standard library than notebooks and generally defaults to the latest version of everything. However, we have currently pinned the default version of |
For reference, the correspondence between duckdb versions and storage version is here: https://duckdb.org/docs/internals/storage#storage-version-table Also: all versions of duckdb, starting with 10.0, will be able to read previous versions (from 0.9). See https://duckdb.org/docs/internals/storage#backward-compatibility and https://duckdb.org/2024/02/13/announcing-duckdb-0100.html#backward-compatibility. Currently, in Observable notebooks, we're not able to attach duckdb files created with duckdb 10.0 (such as https://huggingface.co/datasets/nyu-mll/glue/resolve/refs%2Fconvert%2Fduckdb/ax/test/index.duckdb), it gives:
|
If we do tag duckdb-wasm 1.29.0 (that is aligned to duckdb 0.10.1) later today, would that solve help in finally solving this problem? |
It would be awesome! edited |
@severo: I think the right place would be discussing this as part of the support channels available |
Is your feature request related to a problem? Please describe.
I'm writing a notebook that uses the native Observable DuckDB client. One query attempts using DuckDB's UNPIVOT statement introduced in DuckDB 0.8.0 (released around mid-May 2023, see announcement and docs). The query fails with a syntax error (see screenshot) which I'm guessing is due to an outdated duckdb-wasm version in Observable. Checking the stdlib dependencies file shows Observable is using version 1.24.0 of duckdb-wasm, which was published in March according to npm. That months-long difference between 1.24.0 and 1.27.0 could explain why UNPIVOT isn't working within yet Observable.
Describe the solution you'd like
Update to the latest version of duckdb-wasm, which at time of writing is 1.27.0 and was published mid-June.
Describe alternatives you've considered
If updating isn't possible, one could update the intro notebook "Hello, DuckDB" to mention what version of duckdb Observable is currently running so users can look at the correct documentation.
Additional context
![unpivot syntax error](https://private-user-images.githubusercontent.com/7855609/259270357-aaa840e4-e154-4d7f-9f2c-d8ff9f5a2c1d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzUwNDAsIm5iZiI6MTczOTM3NDc0MCwicGF0aCI6Ii83ODU1NjA5LzI1OTI3MDM1Ny1hYWE4NDBlNC1lMTU0LTRkN2YtOWYyYy1kOGZmOWY1YTJjMWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTUzOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjMzY2YwYWI0YTkyOGJjODBmYjNiNmI2N2YxMjI4M2JhZWViN2IyODZjY2E1YmI1NGE2NDhjM2E2NmNmYWFmZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.hrRNEOZwvZE3m7N7y4GfYfPX1vsa1pHCYVPsyzvgJhs)
![stdlib dependencies](https://private-user-images.githubusercontent.com/7855609/259271896-af204603-4379-452f-ad54-8d230b859aa8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzUwNDAsIm5iZiI6MTczOTM3NDc0MCwicGF0aCI6Ii83ODU1NjA5LzI1OTI3MTg5Ni1hZjIwNDYwMy00Mzc5LTQ1MmYtYWQ1NC04ZDIzMGI4NTlhYTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTUzOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmEwZjAyZjIzODA2ZjVkMjBhODA4MDJiYzBmMTk4N2EwN2YxM2Y2MTAyMzE5MmMwMjllY2ZlMzY3MTQ2MWY0NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ZFjovvuKMOL5BHAypicppvKBh32i_P7vhZvJb9Cr93g)
![npm duckdb-wasm versions](https://private-user-images.githubusercontent.com/7855609/259272229-a830a811-450c-4b53-8a1d-95dfe3031080.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzUwNDAsIm5iZiI6MTczOTM3NDc0MCwicGF0aCI6Ii83ODU1NjA5LzI1OTI3MjIyOS1hODMwYTgxMS00NTBjLTRiNTMtOGExZC05NWRmZTMwMzEwODAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTUzOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzY1NDE2NmQ4YTFmYTc3ZDI5ZWZlYThkMGRkN2Q1ODhlN2Q1NGE1ZGJjMjBiMzg2OGRjZDU1ZDhmMjFlNGE4MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.-UQ3lkjULqQoResoUY8NQ-08CiTp7xGxqaq0Q22UTlQ)
The text was updated successfully, but these errors were encountered: