Skip to content

Insert support with data chunk or Arrow #46

Closed
@mharmer

Description

@mharmer

I can't seem to find an interface available that would allow me to insert data from columnar data I have in memory.

For Arrow specifically, I see the following C interfaces in duckdb itself for Arrow support, but they appear to be used for reading data out, or used in small inserts where the data is in the SQL query itself: https://github.com/duckdb/duckdb/blob/c3ba7e5b/src/include/duckdb.h#L1805

I recently opened a question on this in duckdb (duckdb/duckdb#3412) and closed it since there appeared to be support (possibly only through a C++ API with DataChunk). But, I'm thinking that since there doesn't appear to be a C API for writing to their DataChunk type that this might actually be necessary to support it from duckdb-rs.

I thought I might ask here since I think @wangfenjin has done a lot of the Arrow support in DuckDB, but I am using duckdb-rs as my primary interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions