-
Notifications
You must be signed in to change notification settings - Fork 128
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
Appender support for arrays (or alternative) #422
Comments
I do not believe there is a function in the C api to append an array or list, but it would require the value to be coverted to a data chunk and then appended with If you have arrow data, I think it is possible to do this in the current rust api with |
Looking at the current Rust API (https://docs.rs/duckdb/latest/duckdb/struct.Appender.html?search=batch), I don't see any |
It is in the appender-arrow feature here. |
I think |
At the moment, although the
Value
andValueRef
seem to mention support for arrays, lists, and a few related items, none of them seem to be implemented (i.e. the code panics withunsupported!()
) when used inAppender::append_row
or even for parameter binding in prepared statements.It would be nice, since DuckDB does support array / list types, to be able to bulk insert data (or at least insert row-by-row) that contains such types.
In the interim, is there perhaps a workaround? (Besides serializing the data as JSON and using
COPY
, or writing a prepared statement that deserializes data a string via JSON.)The text was updated successfully, but these errors were encountered: