-
Notifications
You must be signed in to change notification settings - Fork 126
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
DuckDB.of doesn't ingest relative FileAttachments #190
Labels
enhancement
New feature or request
Milestone
Comments
Another workaround: const db = DuckDBClient.of({
penguins: {
file: {
name: "penguins.parquet",
url: () => "blob:",
arrayBuffer: () => FileAttachment("penguins.parquet").arrayBuffer()
}
}
}) |
This PR works for me observablehq/stdlib#389 |
When we fix stdlib, revert the (neat) work-around added in 262d2ef |
Fil
added
enhancement
New feature or request
and removed
bug
Something isn’t working
labels
Nov 27, 2023
depends on observablehq/runtime#367 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EDIT: this now works, but needs to be cleaned up once we ship a new version of stdlib.
This does not currently work:
A work-around is to force the URL to be absolute:
then call:
Maybe that could be fixed in stdlib, https://github.com/observablehq/stdlib/blob/301bd60f43b7416ea4a82a297f0dd287bef83410/src/duckdb.js#L174C36-L174C45
The text was updated successfully, but these errors were encountered: