Comments (4)
According to the issue you mentioned, they had support append datachunks
- test example: https://github.com/duckdb/duckdb/blob/f44e77c7ec356ca6aee96dc84b0e00a6d3c6973a/test/api/capi/test_capi_data_chunk.cpp#L51
- doc: https://duckdb.org/docs/api/c/data_chunk
We need to add API in appender.rs . I maintain this crate in my spare time, can't guarantee when it will be available. It would be great if you can help on this.
from duckdb-rs.
If the inmemory data is arrow format, we may also choose to add api for table functions
- https://github.com/duckdb/duckdb/blob/f44e77c7ec/src/function/table/arrow.cpp#L1111
- https://duckdb.org/docs/api/c/table_functions
- https://github.com/duckdb/duckdb/blob/5079e8e7f05057b10e97d0dd028a3e1d636c798b/src/include/duckdb.h#L1330
from duckdb-rs.
I can definitely take a look at adding this. I had missed the crucial duckdb_vector_get_data
from the Data Chunk API that returns a pointer that can be both read and written to, so I think it will cover what I need. Would this necessarily be implemented in the appender.rs though - the C API seems to have split these out sufficiently that maybe a new datachunk.rs might make more sense?
I do have an arrow format currently in memory, so I might try to tackle the table functions after the data chunks.
from duckdb-rs.
Yes, you are free to create a new file for this
from duckdb-rs.
Related Issues (20)
- u64 not being casted to UBigInt and being casted to BigInt instead HOT 1
- Feature request - support Timestamp data types in the appender api
- column_count can panic
- Assertion failed: types == input.GetTypes() in column_data_collection.cpp, line 718
- impl Drop for Appender has unnecessary unsafe calls.
- Listing tables in rust never iterates HOT 2
- duckdb-rs 0.10.0 compilation failed on windows 11
- duckdb-rs 0.10 is failing on macOS Venture (13.5.2) with code 14 HOT 2
- `DataStruct.struct_vector(i).child(j)` leads to assertion failure
- No support for `UHUGEINT` (`u128`) in `FromSql` trait HOT 2
- Proper way of creating a static connection pool with r2d2 HOT 2
- The latest rust crate build for MacOS fails with default settings HOT 1
- Compared to sqlite, query execution speed is several times slower in rust code HOT 13
- BUG: Panic on `SELECT * FROM arrow(?, ?)` when using `TimestampMillisecondArray` arrow type. HOT 5
- Segfault when using `appender` with Generated Columns
- Question: If an INSERT statement includes a RETURNING Clause, how can I retrieve the returned content? HOT 4
- Support for Decimal128 & Decimal256 without downcasting to f64 HOT 5
- update link to param types in rust client api
- Pivot not working with prepared statements HOT 1
- Segmentation fault on `try_clone` misuse HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duckdb-rs.