-
Notifications
You must be signed in to change notification settings - Fork 596
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
depr(duckdb): deprecate read_in_memory
#9666
Conversation
ugh, I forgot this is also in polars and maybe datafusion |
54bcbbd
to
158a771
Compare
This functionality is available via `create_table` (and also available across all backends instead of just DuckDB).
158a771
to
6074c68
Compare
By deprecating this are we now requiring that people effectively copy their data into backends that can operate directly on the in-memory data? |
I don't think so. It's currently only available on the DuckDB backend. The suggested alternative works on all backends (except Druid) where a user can pass an in-memory object to |
Oh, also I forgot about |
@cpcloud -- anything else you'd like to see here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, this LGTM!
For some reason I incorrectly assumed this was a breaking change, but it's not.
read_in_memory
read_in_memory
It seems like a breaking change. Our use-case is registering Arrow tables and using DuckDB as a strictly in-memory query engine for Arrow data. Using The original functionality was basically equivalent to The recommended upgrade path creates a table in DuckDB, which involves memory copies, even if the temp flag is set to true. |
@gforsyth Would you prefer if I create an issue for this ^? |
Hey @acuitymd-filip -- you can open an issue if you'd like to discuss this further (that will probably be better for searches, anyway). I can update the options in the upgrade path. If you use |
Description of changes
This functionality is available via
create_table
(and also availableacross all backends instead of just DuckDB).