-
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
DuckDBClient.of does not create tables in database when Arrow tables are passed in parameter #623
Comments
The problem is that DuckDB loads its own instance of Arrow and then does The workaround (for now) is to load the exact same module: arrow = import('https://cdn.observableusercontent.com/npm/[email protected]/+esm') |
For what it’s worth, this isn’t an issue with Observable Framework because we expressly override dependency resolution to ensure a consistent version of Apache Arrow. It would be better if DuckDB used duck testing instead of Though, there is a separate issue with Observable Framework which is that |
Thanks for the info and the workaround! It seems the |
Related: duckdb/duckdb-wasm#1708 (comment) |
Is your feature request related to a problem? Please describe.
Is DuckDBClient.of() intended to work with arrow Table objects?
The following code snippet returns an empty list of tables.
All examples i can find use FileAttachments. The stdlib source code seems to indicate this is possible but I cannot find examples or tests to reference.
Describe the solution you'd like
DuckDBClient.of
with Arrow table objects directly (rather than FileAttachments), specifically whether a CREATE TABLE step is required vs. implicit based on the Arrow table schema.Describe alternatives you've considered
Additional context
Minimal reproducer: https://observablehq.com/d/e21c08e832074f40
The text was updated successfully, but these errors were encountered: